2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, zeromq }:
|
2014-11-07 15:57:34 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "cppzmq";
|
2020-10-17 17:44:26 -07:00
|
|
|
version = "4.7.1";
|
2014-11-07 15:57:34 -08:00
|
|
|
|
2016-01-13 07:45:00 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zeromq";
|
|
|
|
repo = "cppzmq";
|
2017-07-27 05:52:30 -07:00
|
|
|
rev = "v${version}";
|
2020-10-17 17:44:26 -07:00
|
|
|
sha256 = "00lb3pv923nbpaf7ric2cv6lbpspknj0pxj6yj5jyah7r3zw692m";
|
2014-11-07 15:57:34 -08:00
|
|
|
};
|
|
|
|
|
2017-07-27 05:52:30 -07:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zeromq ];
|
2014-11-07 15:57:34 -08:00
|
|
|
|
2019-06-03 01:01:42 -07:00
|
|
|
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-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/zeromq/cppzmq";
|
2014-11-07 15:57:34 -08:00
|
|
|
license = licenses.bsd2;
|
|
|
|
description = "C++ binding for 0MQ";
|
2015-05-14 10:09:10 -07:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2014-11-07 15:57:34 -08:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|