yt-dlp: make atomicparsley optional

This commit is contained in:
zowoq 2022-04-28 07:53:52 +10:00
parent 6ee9a9d0be
commit 14dd7b52b1

View file

@ -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 = [