lugaru: fix build failure with cmake 4 (#452681)

This commit is contained in:
Yohann Boniface
2025-10-16 22:02:12 +00:00
committed by GitHub
+10
View File
@@ -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";