Unverified Commit b4ebab3f authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

alure2, python312Packages.palace: fix build with cmake4 (#458189)

parents 5329068d 9a86751b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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";
+2 −1
Original line number Diff line number Diff line
@@ -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 = [