llvm-packages: get rid of extra build depedencies for manpages

Fixes #26756
This commit is contained in:
Daiderd Jordan 2017-06-24 13:11:43 +02:00
parent 3584707638
commit f60a36a910
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
3 changed files with 20 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{ stdenv, fetch, cmake, libxml2, libedit, llvm, version, release_version, clang-tools-extra_src, python
, fixDarwinDylibNames
, enableManpages ? true
, enableManpages ? false
}:
let

View File

@ -13,7 +13,11 @@ let
compiler-rt_src = fetch "compiler-rt" "059ipqq27gd928ay06f1ck3vw6y5h5z4zd766x8k0k7jpqimpwnk";
clang-tools-extra_src = fetch "clang-tools-extra" "16bwckgcxfn56mbqjlxi7fxja0zm9hjfa6s3ncm3dz98n5zd7ds1";
self = {
# Add man output without introducing extra dependencies.
overrideManOutput = drv:
let drv-manpages = drv.override { enableManpages = true; }; in
drv // { man = drv-manpages.man; outputs = drv.outputs ++ ["man"]; };
llvm = callPackage ./llvm.nix {
inherit compiler-rt_src stdenv;
};
@ -22,6 +26,13 @@ let
inherit clang-tools-extra_src stdenv;
};
self = {
llvm = overrideManOutput llvm;
clang-unwrapped = overrideManOutput clang-unwrapped;
llvm-manpages = self.llvm.man;
clang-manpages = self.clang-unwrapped.man;
clang = wrapCC self.clang-unwrapped;
openmp = callPackage ./openmp.nix {};

View File

@ -16,7 +16,7 @@
, compiler-rt_src
, libcxxabi
, debugVersion ? false
, enableManpages ? true
, enableManpages ? false
, enableSharedLibraries ? true
, darwin
}: