diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2018-01-13 23:04:42 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2018-01-13 23:10:02 +0100 |
commit | 5c73ee1a9375d225a66a4fd469fc82e59a2d7414 (patch) | |
tree | ff788b5bf5307a648f05f4b56d34a848b7073d59 /pkgs/tools/misc | |
parent | 5c76e6cbaedddbc660c1bbacb2ddfe2fcbb73680 (diff) | |
download | nixlib-5c73ee1a9375d225a66a4fd469fc82e59a2d7414.tar nixlib-5c73ee1a9375d225a66a4fd469fc82e59a2d7414.tar.gz nixlib-5c73ee1a9375d225a66a4fd469fc82e59a2d7414.tar.bz2 nixlib-5c73ee1a9375d225a66a4fd469fc82e59a2d7414.tar.lz nixlib-5c73ee1a9375d225a66a4fd469fc82e59a2d7414.tar.xz nixlib-5c73ee1a9375d225a66a4fd469fc82e59a2d7414.tar.zst nixlib-5c73ee1a9375d225a66a4fd469fc82e59a2d7414.zip |
youtubeDL: don't double wrap executable
Fixes command name detection via argv.
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/youtube-dl/default.nix | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/pkgs/tools/misc/youtube-dl/default.nix b/pkgs/tools/misc/youtube-dl/default.nix index 7a1ac3525a98..e071891fff96 100644 --- a/pkgs/tools/misc/youtube-dl/default.nix +++ b/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; |