Permalink
Browse files

youtubeDL: don't double wrap executable

Fixes command name detection via argv.
  • Loading branch information...
fpletz committed Jan 13, 2018
1 parent 5c76e6c commit 5c73ee1a9375d225a66a4fd469fc82e59a2d7414
Showing with 7 additions and 9 deletions.
  1. +7 −9 pkgs/tools/misc/youtube-dl/default.nix
@@ -30,15 +30,13 @@ buildPythonApplication rec {
# Ensure ffmpeg is available in $PATH for post-processing & transcoding support.
# rtmpdump is required to download files over RTMP
# atomicparsley for embedding thumbnails
postInstall = let
packagesToBinPath =
[ atomicparsley ]
++ optional ffmpegSupport ffmpeg
++ optional rtmpSupport rtmpdump
++ optional phantomjsSupport phantomjs2;
in ''
wrapProgram $out/bin/youtube-dl --prefix PATH : "${makeBinPath packagesToBinPath}"
'';
makeWrapperArgs = let
packagesToBinPath =
[ atomicparsley ]
++ optional ffmpegSupport ffmpeg
++ optional rtmpSupport rtmpdump
++ optional phantomjsSupport phantomjs2;
in [ ''--prefix PATH : "${makeBinPath packagesToBinPath}"'' ];
# Requires network
doCheck = false;

0 comments on commit 5c73ee1

Please sign in to comment.