From 8bf1d83d23a23bb8ccb9e06d1bc678bd75bc6757 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Tue, 23 Dec 2025 17:20:35 +0100 Subject: [PATCH] koboredux,koboredux-free: fix build with CMake 4 --- pkgs/by-name/ko/koboredux/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ko/koboredux/package.nix b/pkgs/by-name/ko/koboredux/package.nix index e51cf8a042e9..9a3b968787bc 100644 --- a/pkgs/by-name/ko/koboredux/package.nix +++ b/pkgs/by-name/ko/koboredux/package.nix @@ -65,7 +65,14 @@ stdenv.mkDerivation rec { }) ]; - postPatch = optionalString useProprietaryAssets '' + postPatch = '' + # CMake 4 support + # https://github.com/olofson/koboredux/pull/562 + substituteInPlace CMakeLists.txt --replace-fail \ + 'cmake_minimum_required(VERSION 2.8)' \ + 'cmake_minimum_required(VERSION 2.8...4.1)' + '' + + optionalString useProprietaryAssets '' cp -r ../koboredux-${version}-Linux/sfx/redux data/sfx/ cp -r ../koboredux-${version}-Linux/gfx/redux data/gfx/ cp -r ../koboredux-${version}-Linux/gfx/redux_fullscreen data/gfx/