mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
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";
|
||||
|
||||
inherit system config;
|
||||
inherit (stage0.stdenv) shell initialPath fetchurlBoot;
|
||||
inherit (stage0.stdenv) shell fetchurlBoot;
|
||||
|
||||
initialPath = stage0.stdenv.initialPath ++ [ nativePrefix ];
|
||||
|
||||
preHook = preHook + "\n" + ''
|
||||
export NIX_LDFLAGS_AFTER+=" -L/usr/lib"
|
||||
|
@ -82,7 +84,7 @@ rec {
|
|||
cc = {
|
||||
name = "clang-9.9.9";
|
||||
cc = "/usr";
|
||||
outPath = "${buildTools.tools}/Library/Developer/CommandLineTools/usr";
|
||||
outPath = nativePrefix;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -126,7 +128,7 @@ rec {
|
|||
nativeTools = false;
|
||||
nativeLibc = true;
|
||||
binutils = pkgs.darwin.cctools;
|
||||
cc = pkgs.llvmPackages.clang;
|
||||
cc = pkgs.llvmPackages.clang-unwrapped;
|
||||
coreutils = pkgs.coreutils;
|
||||
shell = "${pkgs.bash}/bin/bash";
|
||||
extraPackages = [ pkgs.libcxx ];
|
||||
|
|
Loading…
Reference in a new issue