From d68e2d795c847d9c8d5aaf5f91a6f52add111488 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 7 Oct 2025 10:38:02 +0100 Subject: [PATCH] libretro.pcsx2: fix build --- pkgs/applications/emulators/libretro/cores/pcsx2.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/applications/emulators/libretro/cores/pcsx2.nix b/pkgs/applications/emulators/libretro/cores/pcsx2.nix index e518f9049e51..b5640a856e04 100644 --- a/pkgs/applications/emulators/libretro/cores/pcsx2.nix +++ b/pkgs/applications/emulators/libretro/cores/pcsx2.nix @@ -33,6 +33,18 @@ mkLibretroCore { xz ]; + # CMake Error at 3rdparty/libzip/libzip/CMakeLists.txt:1 (cmake_minimum_required): + # Compatibility with CMake < 3.5 has been removed from CMake. + # + # Update the VERSION argument value. Or, use the ... syntax + # to tell CMake that the project requires at least but has been updated + # to work with policies introduced by or earlier. + # + # Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. + cmakeFlags = [ + "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" + ]; + # libretro/ps2 needs at least those flags to compile, and probably doesn't # work on x86_64-v1 # https://github.com/libretro/ps2/blob/397b8f54b92aeffd2dd502c2c9b601305fb1de9d/cmake/BuildParameters.cmake#L101