Commit 3cfaca27 authored by netcrns's avatar netcrns
Browse files

infra-arcana: cmake 4 patches

parent f28af503
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
  SDL2,
  SDL2_image,
  SDL2_mixer,
  fetchpatch,
}:

stdenv.mkDerivation rec {
@@ -20,6 +21,22 @@ stdenv.mkDerivation rec {
    hash = "sha256-b7YRhoQa298fcP4cXlWhLXajjL0M3Mk4Kbb81iH6s5w=";
  };

  # NOTE(netcrns):
  # both needed for cmake 4 update,
  # can be removed after next stable infra-arcana release.
  patches = [
    # Remove CMake minimum version requirement
    (fetchpatch {
      url = "https://gitlab.com/martin-tornqvist/ia/-/commit/6d82fe8ac58cfb33b65eb1c345d6a73d7c0a300b.patch";
      sha256 = "sha256-WaJKcjKQ9Ip46MM4W2lTFu1ev1lutbgXpceWX2KnffI=";
    })
    # Re-add required CMake version, raise to higher version
    (fetchpatch {
      url = "https://gitlab.com/martin-tornqvist/ia/-/commit/51ca3d3cf577a159d65799124c3d19b7c6d49057.patch";
      sha256 = "sha256-+GklNdHsywxN8tCciPjRK9/H75hoSp3oh7rIj6J0gMM=";
    })
  ];

  nativeBuildInputs = [
    cmake
    makeWrapper