Skip to content

Commit

Permalink
youtube-dl: build the lazy_extractors module to improve startup time
Browse files Browse the repository at this point in the history
(cherry picked from commit 840f488)
  • Loading branch information
ivan authored and worldofpeace committed Jun 8, 2019
1 parent 9ef0a6f commit 1ab6de1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/tools/misc/youtube-dl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ buildPythonPackage rec {
++ lib.optional phantomjsSupport phantomjs2;
in [ ''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"'' ];

setupPyBuildFlags = [
"build_lazy_extractors"
];

postInstall = ''
mkdir -p $out/share/zsh/site-functions
cp youtube-dl.zsh $out/share/zsh/site-functions/_youtube-dl
Expand Down

0 comments on commit 1ab6de1

Please sign in to comment.