lol
at 23.05-pre 36 lines 938 B view raw
1{ lib, stdenv, fetchFromGitHub 2, cmake, protobuf, protobufc 3, libsodium, openssl 4}: 5 6stdenv.mkDerivation rec { 7 pname = "libnats"; 8 version = "3.5.0"; 9 10 src = fetchFromGitHub { 11 owner = "nats-io"; 12 repo = "nats.c"; 13 rev = "v${version}"; 14 sha256 = "sha256-mdOvJkCdJ2QEsVUdxVCpIDLn4+6JM6OeJfasJxqqID8="; 15 }; 16 17 nativeBuildInputs = [ cmake ]; 18 buildInputs = [ libsodium openssl protobuf protobufc ]; 19 20 separateDebugInfo = true; 21 outputs = [ "out" "dev" ]; 22 23 # https://github.com/nats-io/nats.c/issues/542 24 postPatch = '' 25 substituteInPlace src/libnats.pc.in \ 26 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ 27 ''; 28 29 meta = with lib; { 30 description = "C API for the NATS messaging system"; 31 homepage = "https://github.com/nats-io/nats.c"; 32 license = licenses.asl20; 33 platforms = platforms.unix; 34 maintainers = with maintainers; [ thoughtpolice ]; 35 }; 36}