diff options
author | Peter Simons <simons@cryp.to> | 2015-06-05 10:38:35 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-06-05 10:38:35 +0200 |
commit | c1c4ca08def84f339447e23b0ee4ead3c2568b6f (patch) | |
tree | f7f467867914e0ca200a6cb8b78533de22c61d0b /pkgs/tools/misc/youtube-dl | |
parent | 86a511a398d83a2e5374e8e8d6f9c64f38f6e5b3 (diff) | |
download | nixlib-c1c4ca08def84f339447e23b0ee4ead3c2568b6f.tar nixlib-c1c4ca08def84f339447e23b0ee4ead3c2568b6f.tar.gz nixlib-c1c4ca08def84f339447e23b0ee4ead3c2568b6f.tar.bz2 nixlib-c1c4ca08def84f339447e23b0ee4ead3c2568b6f.tar.lz nixlib-c1c4ca08def84f339447e23b0ee4ead3c2568b6f.tar.xz nixlib-c1c4ca08def84f339447e23b0ee4ead3c2568b6f.tar.zst nixlib-c1c4ca08def84f339447e23b0ee4ead3c2568b6f.zip |
youtube-dl: clean up the expression and document the pandoc situation
This patch resolves https://github.com/NixOS/nixpkgs/pull/8184.
Diffstat (limited to 'pkgs/tools/misc/youtube-dl')
-rw-r--r-- | pkgs/tools/misc/youtube-dl/default.nix | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/pkgs/tools/misc/youtube-dl/default.nix b/pkgs/tools/misc/youtube-dl/default.nix index 18d6df1e2727..3985f8a0c838 100644 --- a/pkgs/tools/misc/youtube-dl/default.nix +++ b/pkgs/tools/misc/youtube-dl/default.nix @@ -1,9 +1,11 @@ -{ manuals ? true -, stdenv, fetchurl, makeWrapper, python, zip, -pandoc ? null -, ffmpeg }: +{ stdenv, fetchurl, makeWrapper, python, zip, ffmpeg, pandoc ? null }: -assert manuals -> pandoc != null; +# Pandoc is required to build the package's man page. Release tarballs +# contain a formatted man page already, though, so it's fine to pass +# "pandoc = null" to this derivation; the man page will still be +# installed. We keep the pandoc argument and build input in place in +# case someone wants to use this derivation to build a Git version of +# the tool that doesn't have the formatted man page included. stdenv.mkDerivation rec { name = "youtube-dl-${version}"; @@ -14,14 +16,9 @@ stdenv.mkDerivation rec { sha256 = "0lgxir2i5ipplg57wk8gnbbsdrk7szqnyb1bxr97f3h0rbm4dfij"; }; - nativeBuildInputs = [ ] - ++ stdenv.lib.optional manuals pandoc; + buildInputs = [ python makeWrapper zip pandoc ]; - buildInputs = [ python makeWrapper zip ]; - - patchPhase = '' - rm youtube-dl - ''; + patchPhase = "rm youtube-dl"; configurePhase = '' makeFlagsArray=( PREFIX=$out SYSCONFDIR=$out/etc PYTHON=${python}/bin/python ) |