1 { lib, stdenv, fetchFromGitHub
2 , cmake, protobuf, protobufc
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
13 rev = "refs/tags/v${version}";
14 sha256 = "16a0f0gvrmyrqvmh6vinqny3qhm6wyzw5ijnn3r82b1gqlpws0fz";
17 nativeBuildInputs = [ cmake ];
18 buildInputs = [ libsodium openssl protobuf protobufc ];
20 separateDebugInfo = true;
21 outputs = [ "out" "dev" ];
24 description = "C API for the NATS messaging system";
25 homepage = "https://github.com/nats-io/nats.c";
26 license = licenses.asl20;
27 platforms = platforms.unix;
28 maintainers = with maintainers; [ thoughtpolice ];