Unverified Commit 5d28df96 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

allegro5: fix build with cmake 4 (#449324)

parents cee37840 4989b54b
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -4,9 +4,11 @@
  cmake,
  enet,
  fetchFromGitHub,
  fetchpatch2,
  fixDarwinDylibNames,
  flac,
  freetype,
  gitUpdater,
  gtk3,
  libGL,
  libGLU,
@@ -53,6 +55,14 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-agE3K+6VhhG/LO52fiesCsOq1fNYVRhdW7aKdPCbTOo=";
  };

  patches = [
    (fetchpatch2 {
      name = "Bump-CMake-minimum-version-to-3.5";
      url = "https://github.com/liballeg/allegro5/commit/6e93fcaabaafd81701f4cd1b74f4b69dd598bc9b.patch?full_index=1";
      hash = "sha256-IEnn66bS2m6MVFCNf341yLtd7jTl2gflL5EFJFmbEt4=";
    })
  ];

  nativeBuildInputs = [
    cmake
    pkg-config
@@ -117,6 +127,10 @@ stdenv.mkDerivation rec {
    "dev"
  ];

  strictDeps = true;

  passthru.updateScript = gitUpdater { };

  meta = with lib; {
    description = "Game programming library";
    homepage = "https://liballeg.org/";