ppsspp: fix build against ffmpeg 4.4

This commit is contained in:
lunik1 2021-05-21 00:01:03 +01:00
parent 7af24d098c
commit babd906230
No known key found for this signature in database
GPG Key ID: 6A37DF9483188492

View File

@ -1,5 +1,6 @@
{ mkDerivation
, fetchFromGitHub
, fetchpatch
, SDL2
, cmake
, ffmpeg
@ -26,6 +27,14 @@ mkDerivation rec {
sha256 = "sha256-vfp/vacIItlPP5dR7jzDT7oOUNFnjvvdR46yi79EJKU=";
};
patches = [
(fetchpatch {
name = "fix_ffmpeg_4.4.patch"; # to be removed with next release
url = "https://patch-diff.githubusercontent.com/raw/hrydgard/ppsspp/pull/14176.patch";
sha256 = "sha256-ecDoOydaLfL6+eFpahcO1TnRl866mZZVHlr6Qrib1mo=";
})
];
postPatch = ''
substituteInPlace git-version.cmake --replace unknown ${src.rev}
substituteInPlace UI/NativeApp.cpp --replace /usr/share $out/share