diff options
author | codyopel <codyopel@gmail.com> | 2015-05-28 10:04:51 -0400 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-05-29 20:26:31 +0200 |
commit | ce62e1c77f3896bbf827b38204797f5a72f3c9fa (patch) | |
tree | 00ea5255adbdbcfc607e7135c8726019f3e3e512 /pkgs/tools/misc/youtube-dl | |
parent | 7621bea14229e847f40e45edcf89ca2d5ff4ad81 (diff) | |
download | nixlib-ce62e1c77f3896bbf827b38204797f5a72f3c9fa.tar nixlib-ce62e1c77f3896bbf827b38204797f5a72f3c9fa.tar.gz nixlib-ce62e1c77f3896bbf827b38204797f5a72f3c9fa.tar.bz2 nixlib-ce62e1c77f3896bbf827b38204797f5a72f3c9fa.tar.lz nixlib-ce62e1c77f3896bbf827b38204797f5a72f3c9fa.tar.xz nixlib-ce62e1c77f3896bbf827b38204797f5a72f3c9fa.tar.zst nixlib-ce62e1c77f3896bbf827b38204797f5a72f3c9fa.zip |
youtube-dl: refactor
Closes https://github.com/NixOS/nixpkgs/pull/8039.
Diffstat (limited to 'pkgs/tools/misc/youtube-dl')
-rw-r--r-- | pkgs/tools/misc/youtube-dl/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/tools/misc/youtube-dl/default.nix b/pkgs/tools/misc/youtube-dl/default.nix index 14d6dccb041f..5171d5cec5aa 100644 --- a/pkgs/tools/misc/youtube-dl/default.nix +++ b/pkgs/tools/misc/youtube-dl/default.nix @@ -1,6 +1,5 @@ { stdenv, fetchurl, makeWrapper, python, zip, pandoc, ffmpeg }: -with stdenv.lib; stdenv.mkDerivation rec { name = "youtube-dl-${version}"; version = "2015.05.20"; @@ -10,7 +9,9 @@ stdenv.mkDerivation rec { sha256 = "1crfada7vq3d24062wr06sfam66cf14j06wnhg7w5ljzrbynvpll"; }; - buildInputs = [ python makeWrapper zip pandoc ]; + nativeBuildInputs = [ pandoc ]; + + buildInputs = [ python makeWrapper zip ]; patchPhase = '' rm youtube-dl @@ -20,12 +21,12 @@ stdenv.mkDerivation rec { makeFlagsArray=( PREFIX=$out SYSCONFDIR=$out/etc PYTHON=${python}/bin/python ) ''; + # Ensure ffmpeg is available in $PATH for post-processing & transcoding support. postInstall = '' - # ffmpeg is used for post-processing and fixups wrapProgram $out/bin/youtube-dl --prefix PATH : "${ffmpeg}/bin" ''; - meta = { + meta = with stdenv.lib; { homepage = "http://rg3.github.com/youtube-dl/"; repositories.git = https://github.com/rg3/youtube-dl.git; description = "Command-line tool to download videos from YouTube.com and other sites"; |