nuked-md: fix build with cmake4

This commit is contained in:
Sigmanificient
2025-10-19 07:34:48 +02:00
parent b7ecb71b42
commit 03795ff8c8
+4 -1
View File
@@ -41,7 +41,10 @@ stdenv.mkDerivation (finalAttrs: {
# FOUND.
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace 'SDL2 REQUIRED' 'SDL2'
--replace 'SDL2 REQUIRED' 'SDL2' \
--replace-fail "cmake_minimum_required(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)"
# CMake 3.0 is deprecated and is no longer supported by CMake > 4
# https://github.com/NixOS/nixpkgs/issues/445447
'';
strictDeps = true;