From 015258f8aa3bb19b15c91f0cbb7eef14eb36952a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 30 Sep 2025 13:34:01 +0200 Subject: [PATCH] physfs: fix build with cmake 4 https://hydra.nixos.org/build/308037037/nixlog/2/tail --- pkgs/development/libraries/physfs/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/physfs/default.nix b/pkgs/development/libraries/physfs/default.nix index ee526bffeb26..b16dd5874277 100644 --- a/pkgs/development/libraries/physfs/default.nix +++ b/pkgs/development/libraries/physfs/default.nix @@ -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