summary refs log tree commit diff
path: root/pkgs/development/libraries/libxml2
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-26 13:36:22 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-26 13:36:22 +0200
commite93975760908c3f0ba905103ce9bb643c7aa05ff (patch)
tree4932a55da273ac2be84ac691f66fed9c8471ac19 /pkgs/development/libraries/libxml2
parent2d9c63633eb533ee0539717b1ce92d9063d36340 (diff)
downloadnixpkgs-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar
nixpkgs-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar.gz
nixpkgs-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar.bz2
nixpkgs-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar.lz
nixpkgs-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar.xz
nixpkgs-e93975760908c3f0ba905103ce9bb643c7aa05ff.tar.zst
nixpkgs-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.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix
index 153096ee45c..2fdc198aa11 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 ];