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: Rafael Ieda <60272+iedame@users.noreply.github.com>
This commit is contained in:
Sergei Trofimovich
2025-10-27 09:25:27 +00:00
co-authored by Rafael Ieda
parent e5aa45ed6c
commit 9245cfdd2d
+10
View File
@@ -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