From 14dd7b52b152ae1afaeada2c7b53c686e5d11f43 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 28 Apr 2022 07:53:52 +1000 Subject: [PATCH] yt-dlp: make atomicparsley optional --- pkgs/tools/misc/yt-dlp/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/yt-dlp/default.nix b/pkgs/tools/misc/yt-dlp/default.nix index efabd8bc453b..1a87a31e3385 100644 --- a/pkgs/tools/misc/yt-dlp/default.nix +++ b/pkgs/tools/misc/yt-dlp/default.nix @@ -10,6 +10,7 @@ , pycryptodomex , websockets , mutagen +, atomicparsleySupport ? true , ffmpegSupport ? true , rtmpSupport ? true , phantomjsSupport ? false @@ -37,11 +38,12 @@ buildPythonPackage rec { # - atomicparsley: embedding thumbnails makeWrapperArgs = let - packagesToBinPath = [ atomicparsley ] + packagesToBinPath = [] + ++ lib.optional atomicparsleySupport atomicparsley ++ lib.optional ffmpegSupport ffmpeg ++ lib.optional rtmpSupport rtmpdump ++ lib.optional phantomjsSupport phantomjs2; - in + in lib.optionalString (packagesToBinPath != []) [ ''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"'' ]; setupPyBuildFlags = [