2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, asciidoc, pkg-config, libsodium
|
2020-10-26 07:17:14 +00:00
|
|
|
, enableDrafts ? false }:
|
2014-05-01 12:52:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "zeromq";
|
2021-02-09 20:45:44 +00:00
|
|
|
version = "4.3.4";
|
2014-05-01 12:52:21 +01:00
|
|
|
|
2017-07-27 13:52:02 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zeromq";
|
|
|
|
repo = "libzmq";
|
|
|
|
rev = "v${version}";
|
2021-02-09 20:45:44 +00:00
|
|
|
sha256 = "sha256-epOEyHOswUGVwzz0FLxhow/zISmZHxsIgmpOV8C8bQM=";
|
2014-05-01 12:52:21 +01:00
|
|
|
};
|
|
|
|
|
2020-10-26 07:17:14 +00:00
|
|
|
nativeBuildInputs = [ cmake asciidoc pkg-config ];
|
|
|
|
buildInputs = [ libsodium ];
|
2017-07-27 13:52:02 +01:00
|
|
|
|
2018-04-25 04:20:18 +01:00
|
|
|
doCheck = false; # fails all the tests (ctest)
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
cmakeFlags = lib.optional enableDrafts "-DENABLE_DRAFTS=ON";
|
2019-07-19 04:09:55 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-05-01 12:52:21 +01:00
|
|
|
branch = "4";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.zeromq.org";
|
2014-05-01 12:52:21 +01:00
|
|
|
description = "The Intelligent Transport Layer";
|
2015-03-12 01:48:23 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
2019-01-26 10:01:09 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2014-05-01 12:52:21 +01:00
|
|
|
};
|
|
|
|
}
|