2017-11-17 07:04:00 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, zeromq }:
|
2014-12-17 19:00:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-18 19:24:49 +00:00
|
|
|
version = "4.0.2";
|
2016-08-22 16:14:23 +01:00
|
|
|
name = "czmq-${version}";
|
2014-12-17 19:00:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-02-18 19:24:49 +00:00
|
|
|
url = "https://github.com/zeromq/czmq/releases/download/v${version}/${name}.tar.gz";
|
|
|
|
sha256 = "12gbh57xnz2v82x1g80gv4bwapmyzl00lbin5ix3swyac8i7m340";
|
2014-12-17 19:00:48 +00:00
|
|
|
};
|
|
|
|
|
2017-11-17 07:04:00 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://patch-diff.githubusercontent.com/raw/zeromq/czmq/pull/1618.patch;
|
|
|
|
sha256 = "1dssy7k0fni6djail8rz0lk8p777158jvrqhgn500i636gkxaxhp";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-09-18 03:21:43 +01: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 21:03:30 +01: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;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2014-12-17 19:00:48 +00:00
|
|
|
};
|
|
|
|
}
|