darwin: add apple cli-tools to initialPath so we can handle overrideCC
fixes #6934
This commit is contained in:
parent
b50848b64c
commit
7f5367c69d
@ -64,7 +64,9 @@ rec {
|
|||||||
name = "stdenv-darwin-boot-1";
|
name = "stdenv-darwin-boot-1";
|
||||||
|
|
||||||
inherit system config;
|
inherit system config;
|
||||||
inherit (stage0.stdenv) shell initialPath fetchurlBoot;
|
inherit (stage0.stdenv) shell fetchurlBoot;
|
||||||
|
|
||||||
|
initialPath = stage0.stdenv.initialPath ++ [ nativePrefix ];
|
||||||
|
|
||||||
preHook = preHook + "\n" + ''
|
preHook = preHook + "\n" + ''
|
||||||
export NIX_LDFLAGS_AFTER+=" -L/usr/lib"
|
export NIX_LDFLAGS_AFTER+=" -L/usr/lib"
|
||||||
@ -82,7 +84,7 @@ rec {
|
|||||||
cc = {
|
cc = {
|
||||||
name = "clang-9.9.9";
|
name = "clang-9.9.9";
|
||||||
cc = "/usr";
|
cc = "/usr";
|
||||||
outPath = "${buildTools.tools}/Library/Developer/CommandLineTools/usr";
|
outPath = nativePrefix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -126,7 +128,7 @@ rec {
|
|||||||
nativeTools = false;
|
nativeTools = false;
|
||||||
nativeLibc = true;
|
nativeLibc = true;
|
||||||
binutils = pkgs.darwin.cctools;
|
binutils = pkgs.darwin.cctools;
|
||||||
cc = pkgs.llvmPackages.clang;
|
cc = pkgs.llvmPackages.clang-unwrapped;
|
||||||
coreutils = pkgs.coreutils;
|
coreutils = pkgs.coreutils;
|
||||||
shell = "${pkgs.bash}/bin/bash";
|
shell = "${pkgs.bash}/bin/bash";
|
||||||
extraPackages = [ pkgs.libcxx ];
|
extraPackages = [ pkgs.libcxx ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user