From 3481c6a3b41e9a7d66c56d78e9ff936364547226 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Mon, 3 Nov 2025 15:37:10 -0300 Subject: [PATCH 1/2] alure2: fix build with cmake4 --- pkgs/by-name/al/alure2/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/al/alure2/package.nix b/pkgs/by-name/al/alure2/package.nix index e9c5af6d9df4..b3183af7a0ac 100644 --- a/pkgs/by-name/al/alure2/package.nix +++ b/pkgs/by-name/al/alure2/package.nix @@ -28,6 +28,11 @@ stdenv.mkDerivation { libsndfile ]; + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "cmake_minimum_required(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)" + ''; + meta = with lib; { description = "Utility library for OpenAL, providing a C++ API and managing common tasks that include file loading, caching, and streaming"; homepage = "https://github.com/kcat/alure"; From 9a86751bdf2b784b5424b5bb7a4b185cb89c7473 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Mon, 3 Nov 2025 16:08:24 -0300 Subject: [PATCH 2/2] python312Packages.palace: fix build with cmake4 --- pkgs/development/python-modules/palace/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/palace/default.nix b/pkgs/development/python-modules/palace/default.nix index 17a4955eccb3..b6937f9258da 100644 --- a/pkgs/development/python-modules/palace/default.nix +++ b/pkgs/development/python-modules/palace/default.nix @@ -26,7 +26,8 @@ buildPythonPackage rec { # Nix uses Release CMake configuration instead of what is assumed by palace. postPatch = '' substituteInPlace CMakeLists.txt \ - --replace IMPORTED_LOCATION_NOCONFIG IMPORTED_LOCATION_RELEASE + --replace-fail IMPORTED_LOCATION_NOCONFIG IMPORTED_LOCATION_RELEASE \ + --replace-fail "cmake_minimum_required(VERSION 2.6.0)" "cmake_minimum_required(VERSION 3.10)" ''; build-system = [