Skip to content

Commit f025232

Browse files
authored
[Backport release-25.11] koboredux,koboredux-free: fix build with CMake 4 (#491716)
2 parents 41547a0 + d773d1e commit f025232

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

pkgs/by-name/ko/koboredux/package.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ stdenv.mkDerivation rec {
6565
})
6666
];
6767

68-
postPatch = optionalString useProprietaryAssets ''
68+
postPatch = ''
69+
# CMake 4 support
70+
# https://github.com/olofson/koboredux/pull/562
71+
substituteInPlace CMakeLists.txt --replace-fail \
72+
'cmake_minimum_required(VERSION 2.8)' \
73+
'cmake_minimum_required(VERSION 2.8...4.1)'
74+
''
75+
+ optionalString useProprietaryAssets ''
6976
cp -r ../koboredux-${version}-Linux/sfx/redux data/sfx/
7077
cp -r ../koboredux-${version}-Linux/gfx/redux data/gfx/
7178
cp -r ../koboredux-${version}-Linux/gfx/redux_fullscreen data/gfx/

0 commit comments

Comments
 (0)