summary refs log tree commit diff
path: root/pkgs/development/libraries/zeromq/4.x.nix
blob: 22e2e8716a62c3c8d1104ecdd66a887cfc40d7c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ 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 ];
  };
}