2014-08-23 18:26:55 -07:00
|
|
|
{ stdenv, pkgs, config
|
|
|
|
, haveLibCxx ? true
|
2014-10-14 16:15:31 -07:00
|
|
|
, useClang33 ? true }:
|
2014-08-17 13:17:13 -07:00
|
|
|
|
|
|
|
import ../generic rec {
|
|
|
|
inherit config;
|
|
|
|
|
|
|
|
preHook =
|
|
|
|
''
|
|
|
|
export NIX_ENFORCE_PURITY=
|
|
|
|
export NIX_IGNORE_LD_THROUGH_GCC=1
|
|
|
|
export NIX_DONT_SET_RPATH=1
|
|
|
|
export NIX_NO_SELF_RPATH=1
|
2014-11-04 07:33:54 -08:00
|
|
|
${import ./prehook.nix}
|
2014-08-17 13:17:13 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
initialPath = (import ../common-path.nix) {pkgs = pkgs;};
|
|
|
|
|
|
|
|
system = stdenv.system;
|
|
|
|
|
2014-10-10 06:48:34 -07:00
|
|
|
gcc = import ../../build-support/gcc-wrapper {
|
2014-08-17 13:17:13 -07:00
|
|
|
nativeTools = false;
|
|
|
|
nativeLibc = true;
|
|
|
|
inherit stdenv;
|
2014-09-29 10:58:09 -07:00
|
|
|
extraPackages = stdenv.lib.optional haveLibCxx pkgs.libcxx;
|
2014-08-17 13:17:13 -07:00
|
|
|
binutils = import ../../build-support/native-darwin-cctools-wrapper {inherit stdenv;};
|
2014-10-10 06:48:34 -07:00
|
|
|
gcc = if useClang33 then pkgs.clang_33.gcc else pkgs.clang.gcc;
|
2014-08-17 13:17:13 -07:00
|
|
|
coreutils = pkgs.coreutils;
|
|
|
|
shell = pkgs.bash + "/bin/sh";
|
|
|
|
};
|
|
|
|
|
|
|
|
shell = pkgs.bash + "/bin/sh";
|
|
|
|
|
|
|
|
fetchurlBoot = stdenv.fetchurlBoot;
|
|
|
|
|
|
|
|
overrides = pkgs_: {
|
|
|
|
inherit gcc;
|
|
|
|
inherit (gcc) binutils;
|
|
|
|
inherit (pkgs)
|
|
|
|
gzip bzip2 xz bash coreutils diffutils findutils gawk
|
2014-10-14 07:36:44 -07:00
|
|
|
gnumake gnused gnutar gnugrep gnupatch perl libcxx libcxxabi;
|
2014-08-17 13:17:13 -07:00
|
|
|
};
|
|
|
|
}
|