Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, asciidoc, pkg-config, libsodium
2, enableDrafts ? false }:
3
4stdenv.mkDerivation rec {
5 pname = "zeromq";
6 version = "4.3.4";
7
8 src = fetchFromGitHub {
9 owner = "zeromq";
10 repo = "libzmq";
11 rev = "v${version}";
12 sha256 = "sha256-epOEyHOswUGVwzz0FLxhow/zISmZHxsIgmpOV8C8bQM=";
13 };
14
15 nativeBuildInputs = [ cmake asciidoc pkg-config ];
16 buildInputs = [ libsodium ];
17
18 doCheck = false; # fails all the tests (ctest)
19
20 cmakeFlags = lib.optional enableDrafts "-DENABLE_DRAFTS=ON";
21
22 meta = with lib; {
23 branch = "4";
24 homepage = "http://www.zeromq.org";
25 description = "The Intelligent Transport Layer";
26 license = licenses.gpl3;
27 platforms = platforms.all;
28 maintainers = with maintainers; [ fpletz ];
29 };
30}