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