ppsspp: fix build against ffmpeg 4.4
commitbabd906230da851b27fb66f18b90a2beac4c7ddd
authorlunik1 <ch.gpg@themaw.xyz>
dateFri 21 May 2021, 00:01 (5 years ago)
parent7af24d0
pkgs/misc/emulators/ppsspp/default.nix+9
@@ -1,5 +1,6 @@
11{ mkDerivation
22, fetchFromGitHub
3+, fetchpatch
34, SDL2
45, cmake
56, ffmpeg
@@ -26,6 +27,14 @@ mkDerivation rec {
2627 sha256 = "sha256-vfp/vacIItlPP5dR7jzDT7oOUNFnjvvdR46yi79EJKU=";
2728 };
2829
30+ patches = [
31+ (fetchpatch {
32+ name = "fix_ffmpeg_4.4.patch"; # to be removed with next release
33+ url = "https://patch-diff.githubusercontent.com/raw/hrydgard/ppsspp/pull/14176.patch";
34+ sha256 = "sha256-ecDoOydaLfL6+eFpahcO1TnRl866mZZVHlr6Qrib1mo=";
35+ })
36+ ];
37+
2938 postPatch = ''
3039 substituteInPlace git-version.cmake --replace unknown ${src.rev}
3140 substituteInPlace UI/NativeApp.cpp --replace /usr/share $out/share