megaglest: fix build with cmake4

This commit is contained in:
Rafael Ieda 2025-10-22 12:27:10 -03:00
parent b5d4fb5c91
commit 18fbd0d1d3
No known key found for this signature in database

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 \