mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
megaglest: fix build with cmake4
This commit is contained in:
parent
b5d4fb5c91
commit
18fbd0d1d3
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue