aboutsummaryrefslogtreecommitdiff
path: root/pkgs/stdenv/darwin
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-06-18 15:30:39 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-06-18 15:30:39 -0400
commitb3d957649f2cf6033f1b4bb9c3fe759d9b7e1527 (patch)
tree35f6e6901ea4e5ea2cded73fff1e12e2730a00ed /pkgs/stdenv/darwin
parenta13286fcf04ec02f41f034b76a11dc920606e2b3 (diff)
parent4627f0719dcc73ccd10d421b05af35170324971d (diff)
Merge remote-tracking branch 'upstream/master' into staging
Diffstat (limited to 'pkgs/stdenv/darwin')
-rw-r--r--pkgs/stdenv/darwin/default.nix22
1 files changed, 15 insertions, 7 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix
index ee57c9e4e62..366be391580 100644
--- a/pkgs/stdenv/darwin/default.nix
+++ b/pkgs/stdenv/darwin/default.nix
@@ -283,10 +283,7 @@ in rec {
llvmPackages_5 = super.llvmPackages_5 // (let
tools = super.llvmPackages_5.tools.extend (llvmSelf: _: {
- inherit (llvmPackages_5) llvm;
- # The .override that was here before had the side affect of removing
- # the hacked-in "man" output.
- clang-unwrapped = builtins.removeAttrs llvmPackages_5.clang-unwrapped [ "man" ];
+ inherit (llvmPackages_5) llvm clang-unwrapped;
});
libraries = super.llvmPackages_5.libraries.extend (llvmSelf: _: {
inherit (llvmPackages_5) libcxx libcxxabi compiler-rt;
@@ -327,8 +324,16 @@ in rec {
coreutils findutils diffutils patchutils;
llvmPackages_5 = super.llvmPackages_5 // (let
- tools = super.llvmPackages_5.tools.extend (_: _: {
- inherit (llvmPackages_5) llvm clang-unwrapped;
+ tools = super.llvmPackages_5.tools.extend (_: super: {
+ # Build man pages with final stdenv not before
+ llvm = lib.extendDerivation
+ true
+ { inherit (super.llvm) man; }
+ llvmPackages_5.llvm;
+ clang-unwrapped = lib.extendDerivation
+ true
+ { inherit (super.clang-unwrapped) man; }
+ llvmPackages_5.clang-unwrapped;
});
libraries = super.llvmPackages_5.libraries.extend (_: _: {
inherit (llvmPackages_5) compiler-rt libcxx libcxxabi;
@@ -365,7 +370,10 @@ in rec {
initialPath = import ../common-path.nix { inherit pkgs; };
shell = "${pkgs.bash}/bin/bash";
- cc = pkgs.llvmPackages.libcxxClang;
+ # Hack to avoid man pages in stdenv, building bootstrap python
+ cc = pkgs.llvmPackages.libcxxClang.override {
+ cc = builtins.removeAttrs pkgs.llvmPackages.clang-unwrapped [ "man" ];
+ };
extraNativeBuildInputs = [];
extraBuildInputs = [ pkgs.darwin.CF ];