mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 06:28:50 +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.
|
# 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user