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 { callPackage
# Darwin frameworks # Darwin frameworks
, Cocoa, CoreMedia, VideoToolbox , Cocoa, CoreMedia, VideoToolbox
, stdenv, lib
, ... , ...
}@args: }@args:
@ -11,5 +12,6 @@ callPackage ./generic.nix (rec {
darwinFrameworks = [ Cocoa CoreMedia VideoToolbox ]; darwinFrameworks = [ Cocoa CoreMedia VideoToolbox ];
/* Work around https://trac.ffmpeg.org/ticket/9242 */ /* 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) } // args)