2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2019-10-28 21:20:23 +00:00
|
|
|
, cmake, protobuf, protobufc
|
|
|
|
, libsodium, openssl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libnats";
|
2021-12-15 18:13:28 +00:00
|
|
|
version = "3.2.0";
|
2019-10-28 21:20:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nats-io";
|
|
|
|
repo = "nats.c";
|
2021-12-15 18:13:28 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ngji3sa44y27lnq4x5dzbd117s9psx4w0j50b4c2b72cf2z139q";
|
2019-10-28 21:20:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libsodium openssl protobuf protobufc ];
|
|
|
|
|
|
|
|
separateDebugInfo = true;
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-10-28 21:20:23 +00:00
|
|
|
description = "C API for the NATS messaging system";
|
|
|
|
homepage = "https://github.com/nats-io/nats.c";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|