mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
95af888fe3
zeromq 4.3.4 is [released under the LGPLv3](https://github.com/zeromq/libzmq/blob/v4.3.4/README.md#license).
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, cmake
|
|
, asciidoc
|
|
, pkg-config
|
|
, libsodium
|
|
, enableDrafts ? false
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zeromq";
|
|
version = "4.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zeromq";
|
|
repo = "libzmq";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-epOEyHOswUGVwzz0FLxhow/zISmZHxsIgmpOV8C8bQM=";
|
|
};
|
|
|
|
patches = [
|
|
# Backport gcc-13 fix:
|
|
# https://github.com/zeromq/libzmq/pull/4480
|
|
(fetchpatch {
|
|
name = "gcc-13.patch";
|
|
url = "https://github.com/zeromq/libzmq/commit/438d5d88392baffa6c2c5e0737d9de19d6686f0d.patch";
|
|
hash = "sha256-tSTYSrQzgnfbY/70QhPdOnpEXX05VAYwVYuW8P1LWf0=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake asciidoc pkg-config ];
|
|
buildInputs = [ libsodium ];
|
|
|
|
doCheck = false; # fails all the tests (ctest)
|
|
|
|
cmakeFlags = lib.optional enableDrafts "-DENABLE_DRAFTS=ON";
|
|
|
|
meta = with lib; {
|
|
branch = "4";
|
|
homepage = "http://www.zeromq.org";
|
|
description = "The Intelligent Transport Layer";
|
|
license = licenses.lgpl3Plus;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ fpletz ];
|
|
};
|
|
}
|