summary refs log tree commit diff
path: root/pkgs/applications/video/handbrake/default.nix
diff options
context:
space:
mode:
authorAnthony Cowley <acowley@gmail.com>2021-05-26 22:09:18 -0400
committerAnthony Cowley <acowley@gmail.com>2021-05-26 22:09:18 -0400
commita404eb2a02ef9a02ea42e16431bbedd6bca53ccb (patch)
tree4148d99dd96f930caafe2ded9ccc4d5d400c48a2 /pkgs/applications/video/handbrake/default.nix
parentea7d4aa9b8225abd6147339f0d56675d6f1f0fd1 (diff)
downloadnixpkgs-a404eb2a02ef9a02ea42e16431bbedd6bca53ccb.tar
nixpkgs-a404eb2a02ef9a02ea42e16431bbedd6bca53ccb.tar.gz
nixpkgs-a404eb2a02ef9a02ea42e16431bbedd6bca53ccb.tar.bz2
nixpkgs-a404eb2a02ef9a02ea42e16431bbedd6bca53ccb.tar.lz
nixpkgs-a404eb2a02ef9a02ea42e16431bbedd6bca53ccb.tar.xz
nixpkgs-a404eb2a02ef9a02ea42e16431bbedd6bca53ccb.tar.zst
nixpkgs-a404eb2a02ef9a02ea42e16431bbedd6bca53ccb.zip
handbrake: fix audio when linking with ffmpeg-4.4
Handbrake rips do not include working audio without this upstream patch.
Diffstat (limited to 'pkgs/applications/video/handbrake/default.nix')
-rw-r--r--pkgs/applications/video/handbrake/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/video/handbrake/default.nix b/pkgs/applications/video/handbrake/default.nix
index faa3113690a..5007f7419ae 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