2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, zeromq }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cppzmq";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "4.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zeromq";
|
|
|
|
repo = "cppzmq";
|
|
|
|
rev = "v${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-hKMHJF/FXPeQjkEXLTN6zjKMaVGa3LdIebXya3NRSzU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zeromq ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
# Tests try to download googletest at compile time; there is no option
|
|
|
|
# to use a system one and no simple way to download it beforehand.
|
|
|
|
"-DCPPZMQ_BUILD_TESTS=OFF"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/zeromq/cppzmq";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
description = "C++ binding for 0MQ";
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|