diff options
author | Vladimír Čunát <v@cunat.cz> | 2021-05-16 09:31:27 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2021-05-16 09:31:27 +0200 |
commit | 3e43d42f87388db13783701993e96f115501cd27 (patch) | |
tree | b299f338e936f981e4178fa0644b6d4a69345b70 /pkgs/development/libraries/ffmpeg | |
parent | 8f64c5d9fcce5981b8ea2a861566e382ddbc9731 (diff) |
ffmpeg_4: only apply the patch on darwin
It's not a big deal, but why rebuild the linux dependencies now.
Diffstat (limited to 'pkgs/development/libraries/ffmpeg')
-rw-r--r-- | pkgs/development/libraries/ffmpeg/4.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/ffmpeg/4.nix b/pkgs/development/libraries/ffmpeg/4.nix index 3a1b1c489c075..df3d0732393e3 100644 --- a/pkgs/development/libraries/ffmpeg/4.nix +++ b/pkgs/development/libraries/ffmpeg/4.nix @@ -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) |