2015-03-12 01:48:58 +00:00
|
|
|
{ stdenv, fetchurl, zeromq }:
|
2014-12-17 19:00:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-22 15:14:23 +00:00
|
|
|
version = "3.0.2";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "czmq";
|
2014-12-17 19:00:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://download.zeromq.org/${pname}-${version}.tar.gz";
|
2015-09-18 02:21:43 +00:00
|
|
|
sha256 = "16k9awrhdsymx7dnmvqcnkaq8lz8x8zppy6sh7ls8prpd6mkkjlb";
|
2014-12-17 19:00:48 +00:00
|
|
|
};
|
|
|
|
|
2017-11-17 07:04:00 +00:00
|
|
|
patches = [ ./czmq3-gcc7.patch ];
|
|
|
|
|
2016-08-22 15:14:23 +00:00
|
|
|
# Fix build on Glibc 2.24.
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
|
|
|
2015-09-18 02:21:43 +00:00
|
|
|
# Needs to be propagated for the .pc file to work
|
|
|
|
propagatedBuildInputs = [ zeromq ];
|
2014-12-17 19:00:48 +00:00
|
|
|
|
2015-03-12 01:48:58 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://czmq.zeromq.org/;
|
2014-12-17 19:00:48 +00:00
|
|
|
description = "High-level C Binding for ZeroMQ";
|
2015-03-12 01:48:58 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
platforms = platforms.all;
|
2014-12-17 19:00:48 +00:00
|
|
|
};
|
|
|
|
}
|