mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 05:51:24 +03:00
youtubeDL: don't double wrap executable
Fixes command name detection via argv.
This commit is contained in:
parent
5c76e6cbae
commit
5c73ee1a93
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user