diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-07-26 13:36:22 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-07-26 13:36:22 +0200 |
commit | e93975760908c3f0ba905103ce9bb643c7aa05ff (patch) | |
tree | 4932a55da273ac2be84ac691f66fed9c8471ac19 /pkgs/development/libraries/libxml2 | |
parent | 2d9c63633eb533ee0539717b1ce92d9063d36340 (diff) | |
download | nixlib-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar nixlib-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar.gz nixlib-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar.bz2 nixlib-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar.lz nixlib-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar.xz nixlib-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar.zst nixlib-e93975760908c3f0ba905103ce9bb643c7aa05ff.zip |
libxml2: Move docs to separate output
This reduces the size of "out" from 8.6 to 2.4 MB.
Diffstat (limited to 'pkgs/development/libraries/libxml2')
-rw-r--r-- | pkgs/development/libraries/libxml2/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index 153096ee45c0..2fdc198aa115 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -16,11 +16,13 @@ stdenv.mkDerivation (rec { sha256 = "1g6mf03xcabmk5ing1lwqmasr803616gb2xhn7pll10x2l5w6y2i"; }; + outputs = [ "out" "doc" ]; + buildInputs = stdenv.lib.optional pythonSupport python # Libxml2 has an optional dependency on liblzma. However, on impure # platforms, it may end up using that from /usr/lib, and thus lack a # RUNPATH for that, leading to undefined references for its users. - ++ (stdenv.lib.optional stdenv.isFreeBSD xz); + ++ stdenv.lib.optional stdenv.isFreeBSD xz; propagatedBuildInputs = [ zlib findXMLCatalogs ]; |