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