megaglest: fix build with cmake4 (#454575)

This commit is contained in:
dish
2025-10-27 14:08:04 +00:00
committed by GitHub
+5
View File
@@ -144,6 +144,11 @@ stdenv.mkDerivation {
"-DBUILD_MEGAGLEST_MODEL_VIEWER=On"
];
postPatch = ''
substituteInPlace {data/glest_game,.}/CMakeLists.txt \
--replace-fail "CMAKE_MINIMUM_REQUIRED( VERSION 2.8.2 )" "cmake_minimum_required(VERSION 3.10)"
'';
postInstall = ''
for i in $out/bin/*; do
wrapProgram $i \