Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 zeromq, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "cppzmq"; 11 version = "4.11.0"; 12 13 src = fetchFromGitHub { 14 owner = "zeromq"; 15 repo = "cppzmq"; 16 rev = "v${version}"; 17 sha256 = "sha256-c6IZ5PnuB96NLYHDHdNclYSF4LpqAfFWxVzeP8BzhCE="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 propagatedBuildInputs = [ zeromq ]; 22 23 cmakeFlags = [ 24 # Tests try to download googletest at compile time; there is no option 25 # to use a system one and no simple way to download it beforehand. 26 "-DCPPZMQ_BUILD_TESTS=OFF" 27 ]; 28 29 meta = with lib; { 30 homepage = "https://github.com/zeromq/cppzmq"; 31 license = licenses.bsd2; 32 description = "C++ binding for 0MQ"; 33 maintainers = with maintainers; [ abbradar ]; 34 platforms = platforms.unix; 35 }; 36}