mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
libxml2: Move docs to separate output
This reduces the size of "out" from 8.6 to 2.4 MB.
This commit is contained in:
parent
2d9c63633e
commit
e939757609
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user