3
0
Fork 0
forked from mirrors/nixpkgs

ffmpeg_4: only apply the patch on darwin

It's not a big deal, but why rebuild the linux dependencies now.
This commit is contained in:
Vladimír Čunát 2021-05-16 09:31:27 +02:00
parent 8f64c5d9fc
commit 3e43d42f87
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -1,6 +1,7 @@
{ callPackage
# Darwin frameworks
, Cocoa, CoreMedia, VideoToolbox
, stdenv, lib
, ...
}@args:
@ -11,5 +12,6 @@ callPackage ./generic.nix (rec {
darwinFrameworks = [ Cocoa CoreMedia VideoToolbox ];
/* Work around https://trac.ffmpeg.org/ticket/9242 */
patches = [ ./v2-0001-avcodec-videotoolboxenc-define-TARGET_CPU_ARM64-t.patch ];
patches = lib.optional stdenv.isDarwin
./v2-0001-avcodec-videotoolboxenc-define-TARGET_CPU_ARM64-t.patch;
} // args)