handbrake: fix audio when linking with ffmpeg-4.4

Handbrake rips do not include working audio without this upstream patch.
This commit is contained in:
Anthony Cowley 2021-05-26 22:09:18 -04:00
parent ea7d4aa9b8
commit a404eb2a02

View file

@ -7,7 +7,7 @@
# be nice to add the native GUI (and/or the GTK GUI) as an option too, but that
# requires invoking the Xcode build system, which is non-trivial for now.
{ stdenv, lib, fetchFromGitHub,
{ stdenv, lib, fetchFromGitHub, fetchpatch,
# Main build tools
pkg-config, autoconf, automake, libtool, m4, xz, python3,
numactl,
@ -58,6 +58,15 @@ stdenv.mkDerivation rec {
'';
};
# Remove with a release after 1.3.3
patches = [
(fetchpatch {
name = "audio-fix-ffmpeg-4_4";
url = "https://github.com/HandBrake/HandBrake/commit/f28289fb06ab461ea082b4be56d6d1504c0c31c2.patch";
sha256 = "sha256:1zcwa4h97d8wjspb8kbd8b1jg0a9vvmv9zaphzry4m9q0bj3h3kz";
})
];
# we put as little as possible in src.extraPostFetch as it's much easier to
# add to it here without having to fiddle with src.sha256
# only DATE and HASH are absolutely necessary