From 293b5d5ad6bf78d55258aeb4086b90812f1f4ad5 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 16 Sep 2025 04:42:24 +0100 Subject: [PATCH] coordgenlibs: fix build with CMake 4 Co-authored-by: K900 --- pkgs/by-name/co/coordgenlibs/package.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/co/coordgenlibs/package.nix b/pkgs/by-name/co/coordgenlibs/package.nix index a02ce722480f..da3a3e554856 100644 --- a/pkgs/by-name/co/coordgenlibs/package.nix +++ b/pkgs/by-name/co/coordgenlibs/package.nix @@ -26,9 +26,15 @@ stdenv.mkDerivation (finalAttrs: { maeparser ]; - env = lib.optionalAttrs stdenv.cc.isClang { - NIX_CFLAGS_COMPILE = "-Wno-unused-but-set-variable"; - }; + # Fix the build with CMake 4. + # + # See: + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail \ + 'cmake_minimum_required(VERSION 3.2)' \ + 'cmake_minimum_required(VERSION 3.5)' + ''; doCheck = true;