@@ -1,5 +1,6 @@
11{ mkDerivation
22, fetchFromGitHub
3+, fetchpatch
34, SDL2
45, cmake
56, ffmpeg
@@ -26,6 +27,15 @@ mkDerivation rec {
2627 sha256 = "sha256-vfp/vacIItlPP5dR7jzDT7oOUNFnjvvdR46yi79EJKU=";
2728 };
2829
30+ patches = [
31+ # fix compability with ffmpeg 4.4, remove on next release after 1.11
32+ (fetchpatch {
33+ name = "fix_ffmpeg_4.4.patch";
34+ url = "https://patch-diff.githubusercontent.com/raw/hrydgard/ppsspp/pull/14176.patch";
35+ sha256 = "sha256-ecDoOydaLfL6+eFpahcO1TnRl866mZZVHlr6Qrib1mo=";
36+ })
37+ ];
38+
2939 postPatch = ''
3040 substituteInPlace git-version.cmake --replace unknown ${src.rev}
3141 substituteInPlace UI/NativeApp.cpp --replace /usr/share $out/share