libxml2: Move docs to separate output

This reduces the size of "out" from 8.6 to 2.4 MB.
This commit is contained in:
Eelco Dolstra 2015-07-26 13:36:22 +02:00
parent 2d9c63633e
commit e939757609

View file

@ -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 ];