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/