Commit 9245cfdd authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

amiberry: backport cmake-4 fix

Without the change the buidl fails in `master` as
https://hydra.nixos.org/build/310522154

:

    CMake Error at external/capsimage/CMakeLists.txt:1 (cmake_minimum_required):
      Compatibility with CMake < 3.5 has been removed from CMake.

Co-authored-by: default avatarRafael Ieda <60272+iedame@users.noreply.github.com>
parent e5aa45ed
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  copyDesktopItems,
  makeWrapper,
@@ -28,6 +29,15 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-EOoVJYefX2pQ2Zz9bLD1RS47u/+7ZWTMwZYha0juF64=";
  };

  patches = [
    # cmake-4 support
    (fetchpatch {
      name = "cmake-4.patch";
      url = "https://github.com/BlitterStudio/amiberry/commit/dbd85a37147603875b9ca51a9409c65a26c0d60a.patch?full_index=1";
      hash = "sha256-w8Z9yhNafbXWv3nV8GDNpks2R1+M12uG1mWWrwVaEUk=";
    })
  ];

  nativeBuildInputs = [
    cmake
    copyDesktopItems