From a404eb2a02ef9a02ea42e16431bbedd6bca53ccb Mon Sep 17 00:00:00 2001 From: Anthony Cowley Date: Wed, 26 May 2021 22:09:18 -0400 Subject: handbrake: fix audio when linking with ffmpeg-4.4 Handbrake rips do not include working audio without this upstream patch. --- pkgs/applications/video/handbrake/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/video/handbrake/default.nix') diff --git a/pkgs/applications/video/handbrake/default.nix b/pkgs/applications/video/handbrake/default.nix index faa3113690ad1..5007f7419aeb1 100644 --- a/pkgs/applications/video/handbrake/default.nix +++ b/pkgs/applications/video/handbrake/default.nix @@ -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 -- cgit 1.4.1