zmqpp: fix build with cmake4, modernize

This commit is contained in:
Rafael Ieda
2025-10-19 09:21:29 -03:00
parent 6b4cb91291
commit bf340c8e21
+14 -9
View File
@@ -7,15 +7,15 @@
zeromq,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "zmqpp";
version = "4.2.0";
src = fetchFromGitHub {
owner = "zeromq";
repo = "zmqpp";
rev = version;
sha256 = "08v34q3sd8g1b95k73n7jwryb0xzwca8ib9dz8ngczqf26j8k72i";
tag = "${finalAttrs.version}";
hash = "sha256-UZyJpBEOf/Ys+i2tiBTjv4PlM5fHjjNLWuGhpgcmYyM=";
};
outputs = [
@@ -30,11 +30,16 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ zeromq ];
meta = with lib; {
inherit (src.meta) homepage;
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 2.8.12)" "cmake_minimum_required(VERSION 3.10)"
'';
meta = {
homepage = "https://github.com/zeromq/zmqpp";
description = "C++ wrapper for czmq. Aims to be minimal, simple and consistent";
license = licenses.lgpl3;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ chris-martin ];
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = with lib.maintainers; [ chris-martin ];
};
}
})