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