From bf340c8e212f5ddad6ef50d6f0ba17d727e85f86 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Sun, 19 Oct 2025 09:21:29 -0300 Subject: [PATCH] zmqpp: fix build with cmake4, modernize --- pkgs/by-name/zm/zmqpp/package.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/zm/zmqpp/package.nix b/pkgs/by-name/zm/zmqpp/package.nix index 02a46f02e982..171872f3ed8c 100644 --- a/pkgs/by-name/zm/zmqpp/package.nix +++ b/pkgs/by-name/zm/zmqpp/package.nix @@ -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 ]; }; -} +})