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="; }) ];