nixpkgs/pkgs/development/libraries/zeromq/4.x.nix

31 lines
848 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libuuid, pkgconfig, libsodium }:
2014-05-01 11:52:21 +00:00
stdenv.mkDerivation rec {
2015-09-18 02:23:08 +00:00
name = "zeromq-4.1.3";
2014-05-01 11:52:21 +00:00
src = fetchurl {
url = "http://download.zeromq.org/${name}.tar.gz";
2015-09-18 02:23:08 +00:00
sha256 = "04gligbgr0phipjkwc0dyk1vr9306r6s4dbj85z7fxxk1n1ircv1";
2014-05-01 11:52:21 +00:00
};
2015-11-07 23:44:48 +00:00
# Fix zeromq-4.1.3 with libsodium-1.0.6
postPatch = ''
sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' configure
'';
2015-09-18 02:23:08 +00:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libuuid libsodium ];
2014-05-01 11:52:21 +00:00
2015-11-07 17:13:45 +00:00
# https://github.com/zeromq/libzmq/commit/479db2113643e459c11db392e0fefd6400657c9e
patches = [ ./sodium_warning.patch ];
2015-03-12 01:48:23 +00:00
meta = with stdenv.lib; {
2014-05-01 11:52:21 +00:00
branch = "4";
homepage = "http://www.zeromq.org";
description = "The Intelligent Transport Layer";
2015-03-12 01:48:23 +00:00
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ wkennington ];
2014-05-01 11:52:21 +00:00
};
}