20 stdenv.mkDerivation (finalAttrs: {
24 src = fetchFromGitHub {
27 rev = "v${finalAttrs.version}";
28 hash = "sha256-q2h5y0Asad+fGB9haO4Vg7a1ffO2JSb7czzlhmT3VmI=";
38 buildInputs = [ libsodium ];
40 doCheck = false; # fails all the tests (ctest)
43 (lib.cmakeBool "WITH_LIBSODIUM" true)
44 (lib.cmakeBool "ENABLE_CURVE" true)
45 (lib.cmakeBool "ENABLE_DRAFTS" enableDrafts)
49 substituteInPlace CMakeLists.txt \
50 --replace '$'{prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
51 --replace '$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
55 # From https://gitlab.archlinux.org/archlinux/packaging/packages/zeromq/-/blob/main/PKGBUILD
56 # man pages aren't created when using cmake
57 # https://github.com/zeromq/libzmq/issues/4160
64 -a zmq_version="${finalAttrs.version}" \
66 xmlto --skip-validation man "''${FILE%.txt}.xml"
72 # Install manually created man pages
73 install -vDm644 -t "$out/share/man/man3" ../doc/*.3
74 install -vDm644 -t "$out/share/man/man7" ../doc/*.7
84 pyzmq = python3.pkgs.pyzmq;
85 ffmpeg = ffmpeg.override { withZmq = true; };
90 homepage = "http://www.zeromq.org";
91 description = "Intelligent Transport Layer";
92 license = lib.licenses.mpl20;
93 platforms = lib.platforms.all;
94 maintainers = with lib.maintainers; [ fpletz ];