nixpkgs/pkgs/stdenv/darwin/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2014-08-24 01:26:55 +00:00
{ stdenv, pkgs, config
, haveLibCxx ? true
, useClang33 ? true }:
2014-08-17 20:17:13 +00: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
${import ./prehook.nix}
2014-08-17 20:17:13 +00:00
'';
initialPath = (import ../common-path.nix) {pkgs = pkgs;};
system = stdenv.system;
cc = import ../../build-support/gcc-wrapper {
2014-08-17 20:17:13 +00:00
nativeTools = false;
nativeLibc = true;
inherit stdenv;
extraPackages = stdenv.lib.optional haveLibCxx pkgs.libcxx;
2014-08-17 20:17:13 +00:00
binutils = import ../../build-support/native-darwin-cctools-wrapper {inherit stdenv;};
2014-10-10 13:48:34 +00:00
gcc = if useClang33 then pkgs.clang_33.gcc else pkgs.clang.gcc;
2014-08-17 20:17:13 +00:00
coreutils = pkgs.coreutils;
shell = pkgs.bash + "/bin/sh";
};
shell = pkgs.bash + "/bin/sh";
fetchurlBoot = stdenv.fetchurlBoot;
overrides = pkgs_: {
inherit cc;
inherit (cc) binutils;
2014-08-17 20:17:13 +00:00
inherit (pkgs)
gzip bzip2 xz bash coreutils diffutils findutils gawk
gnumake gnused gnutar gnugrep gnupatch perl libcxx libcxxabi;
2014-08-17 20:17:13 +00:00
};
}