youtubeDL: don't double wrap executable

Fixes command name detection via argv.
This commit is contained in:
Franz Pletz 2018-01-13 23:04:42 +01:00
parent 5c76e6cbae
commit 5c73ee1a93
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -30,15 +30,13 @@ buildPythonApplication rec {
# Ensure ffmpeg is available in $PATH for post-processing & transcoding support. # Ensure ffmpeg is available in $PATH for post-processing & transcoding support.
# rtmpdump is required to download files over RTMP # rtmpdump is required to download files over RTMP
# atomicparsley for embedding thumbnails # atomicparsley for embedding thumbnails
postInstall = let makeWrapperArgs = let
packagesToBinPath = packagesToBinPath =
[ atomicparsley ] [ atomicparsley ]
++ optional ffmpegSupport ffmpeg ++ optional ffmpegSupport ffmpeg
++ optional rtmpSupport rtmpdump ++ optional rtmpSupport rtmpdump
++ optional phantomjsSupport phantomjs2; ++ optional phantomjsSupport phantomjs2;
in '' in [ ''--prefix PATH : "${makeBinPath packagesToBinPath}"'' ];
wrapProgram $out/bin/youtube-dl --prefix PATH : "${makeBinPath packagesToBinPath}"
'';
# Requires network # Requires network
doCheck = false; doCheck = false;