2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, asciidoc
|
|
|
|
, pkg-config
|
|
|
|
, libsodium
|
|
|
|
, enableDrafts ? false
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zeromq";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "4.3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zeromq";
|
|
|
|
repo = "libzmq";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-q2h5y0Asad+fGB9haO4Vg7a1ffO2JSb7czzlhmT3VmI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
nativeBuildInputs = [ cmake asciidoc pkg-config ];
|
|
|
|
buildInputs = [ libsodium ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false; # fails all the tests (ctest)
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
cmakeFlags = lib.optional enableDrafts "-DENABLE_DRAFTS=ON";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
branch = "4";
|
|
|
|
homepage = "http://www.zeromq.org";
|
|
|
|
description = "The Intelligent Transport Layer";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.mpl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|