coordgenlibs: fix build with CMake 4

Co-authored-by: K900 <me@0upti.me>
This commit is contained in:
Emily
2025-09-17 21:05:00 +01:00
co-authored by K900
parent 493eebd470
commit 293b5d5ad6
+9 -3
View File
@@ -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: <https://github.com/schrodinger/coordgenlibs/pull/130>
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail \
'cmake_minimum_required(VERSION 3.2)' \
'cmake_minimum_required(VERSION 3.5)'
'';
doCheck = true;