python312Packages.palace: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-11-03 16:08:24 -03:00
parent 3481c6a3b4
commit 9a86751bdf
@@ -26,7 +26,8 @@ buildPythonPackage rec {
# Nix uses Release CMake configuration instead of what is assumed by palace.
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace IMPORTED_LOCATION_NOCONFIG IMPORTED_LOCATION_RELEASE
--replace-fail IMPORTED_LOCATION_NOCONFIG IMPORTED_LOCATION_RELEASE \
--replace-fail "cmake_minimum_required(VERSION 2.6.0)" "cmake_minimum_required(VERSION 3.10)"
'';
build-system = [