From 7f1d7ecd4d67ffca6024597284dba5c07f1bd475 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 6 Oct 2025 09:20:24 +0300 Subject: [PATCH] nanomsg: fix build with CMake 4.0 --- pkgs/by-name/na/nanomsg/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/na/nanomsg/package.nix b/pkgs/by-name/na/nanomsg/package.nix index f1487c0c0955..a84a84812822 100644 --- a/pkgs/by-name/na/nanomsg/package.nix +++ b/pkgs/by-name/na/nanomsg/package.nix @@ -21,7 +21,12 @@ stdenv.mkDerivation rec { # Add pkgconfig fix from https://github.com/nanomsg/nanomsg/pull/1085 (fetchpatch { url = "https://github.com/nanomsg/nanomsg/commit/e3323f19579529d272cb1d55bd6b653c4f34c064.patch"; - sha256 = "URz7TAqqpKxqjgvQqNX4WNSShwiEzAvO2h0hCZ2NhVY="; + hash = "sha256-URz7TAqqpKxqjgvQqNX4WNSShwiEzAvO2h0hCZ2NhVY="; + }) + # Fix compatibility with Cmake 4.0 and up + (fetchpatch { + url = "https://github.com/nanomsg/nanomsg/commit/eb24489839de3e2419360c67cc38842f223836d9.patch"; + hash = "sha256-yaQWWZLW4YbiI41oV0nj7zap3lEs0Gwwb9kTD6o3La8="; }) ];