physfs: fix build with cmake 4

https://hydra.nixos.org/build/308037037/nixlog/2/tail
This commit is contained in:
Vladimír Čunát
2025-09-30 13:34:01 +02:00
parent 6157b62feb
commit 015258f8aa

View File

@@ -25,6 +25,13 @@ let
(./. + "/dont-set-cmake-skip-rpath-${version}.patch")
];
# https://github.com/icculus/physfs/commit/f7d24ce8486d9229207cca1ff98858fe60ffe583
# but the patch wouldn't apply to physfs_2, so let's do a fuzzy sed.
postPatch = ''
sed '/^cmake_minimum_required/Is/VERSION [0-9]\.[0-9]/VERSION 3.5/' \
-i CMakeLists.txt
'';
nativeBuildInputs = [
cmake
doxygen