mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
31 lines
848 B
Nix
31 lines
848 B
Nix
{ stdenv, fetchurl, libuuid, pkgconfig, libsodium }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "zeromq-4.1.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.zeromq.org/${name}.tar.gz";
|
|
sha256 = "04gligbgr0phipjkwc0dyk1vr9306r6s4dbj85z7fxxk1n1ircv1";
|
|
};
|
|
|
|
# Fix zeromq-4.1.3 with libsodium-1.0.6
|
|
postPatch = ''
|
|
sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' configure
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libuuid libsodium ];
|
|
|
|
# https://github.com/zeromq/libzmq/commit/479db2113643e459c11db392e0fefd6400657c9e
|
|
patches = [ ./sodium_warning.patch ];
|
|
|
|
meta = with stdenv.lib; {
|
|
branch = "4";
|
|
homepage = "http://www.zeromq.org";
|
|
description = "The Intelligent Transport Layer";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ wkennington ];
|
|
};
|
|
}
|