lugaru: fix build failure with cmake 4
- CMake 4 is no longer retro compatible with versions < 3.5 - CMake Error at CMakeLists.txt:4 (cmake_policy): Policy CMP0004 may not be set to OLD behavior because this version of CMake no longer supports it. The policy was introduced in CMake version 2.6.0, and use of NEW behavior is now required.
This commit is contained in:
@@ -52,6 +52,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
cmakeFlags = [ "-DSYSTEM_INSTALL=ON" ];
|
||||
|
||||
# CMake 3.0 is deprecated and no longer supported by CMake > 4
|
||||
# https://github.com/NixOS/nixpkgs/issues/445447
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt --replace-fail \
|
||||
"cmake_minimum_required(VERSION 3.0)" \
|
||||
"cmake_minimum_required(VERSION 3.10)" \
|
||||
--replace-fail \
|
||||
"cmake_policy(SET CMP0004 OLD)" ""
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Third person ninja rabbit fighting game";
|
||||
mainProgram = "lugaru";
|
||||
|
||||
Reference in New Issue
Block a user