perlPackages.SDL: fix on perl >= 5.38.0

This applies the patch from [1], fixing the most important game in
nixpkgs.

[1]: https://github.com/PerlGameDev/SDL/pull/304
This commit is contained in:
Puck Meerburg 2023-09-20 21:17:53 +00:00
parent 6bc397a1cc
commit 73afddd2a5

View file

@ -21442,6 +21442,13 @@ with self; {
url = "mirror://cpan/authors/id/F/FR/FROGGS/SDL-2.548.tar.gz";
hash = "sha256-JSoZK/qcIHCkiDcH0TnDpF2cRRjM1moeaZtbeVm9T7U=";
};
patches = [
# https://github.com/PerlGameDev/SDL/pull/304
(fetchpatch {
url = "https://github.com/PerlGameDev/SDL/commit/d734d03862d7dcc776bd2fa3ba662cdd5879b32e.patch";
hash = "sha256-YjtnAbJxCvx5QckiatZjD8v7dKefG3DCnXeLaNnEO8U=";
})
];
perlPreHook = "export LD=$CC";
preCheck = "rm t/core_audiospec.t";
buildInputs = [ pkgs.SDL pkgs.SDL_gfx pkgs.SDL_mixer pkgs.SDL_image pkgs.SDL_ttf pkgs.SDL_Pango pkgs.SDL_net AlienSDL CaptureTiny TestDeep TestDifferences TestException TestMost TestWarn ];