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 15:52:21 +04:00
stdenv.mkDerivation rec {
2015-09-18 05:23:08 +03:00
name = "zeromq-4.1.3";
2014-05-01 15:52:21 +04:00
src = fetchurl {
url = "http://download.zeromq.org/${name}.tar.gz";
2015-09-18 05:23:08 +03:00
sha256 = "04gligbgr0phipjkwc0dyk1vr9306r6s4dbj85z7fxxk1n1ircv1";
2014-05-01 15:52:21 +04:00
};
2015-11-08 02:44:48 +03: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 05:23:08 +03:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libuuid libsodium ];
2014-05-01 15:52:21 +04:00
2015-11-07 20:13:45 +03:00
# https://github.com/zeromq/libzmq/commit/479db2113643e459c11db392e0fefd6400657c9e
patches = [ ./sodium_warning.patch ];
2015-03-12 04:48:23 +03:00
meta = with stdenv.lib; {
2014-05-01 15:52:21 +04:00
branch = "4";
homepage = "http://www.zeromq.org";
description = "The Intelligent Transport Layer";
2015-03-12 04:48:23 +03:00
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ wkennington ];
2014-05-01 15:52:21 +04:00
};
}