diff --git a/pkgs/development/libraries/allegro/5.nix b/pkgs/development/libraries/allegro/5.nix index 119d777459dd..723491b6d066 100644 --- a/pkgs/development/libraries/allegro/5.nix +++ b/pkgs/development/libraries/allegro/5.nix @@ -4,6 +4,7 @@ cmake, enet, fetchFromGitHub, + fetchpatch2, fixDarwinDylibNames, flac, freetype, @@ -53,6 +54,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