2012-12-28 07:36:09 -08:00
|
|
|
{ stdenv, pkgs, config }:
|
2004-03-11 09:26:14 -08:00
|
|
|
|
2012-01-19 10:25:35 -08:00
|
|
|
import ../generic rec {
|
2012-12-28 07:36:09 -08:00
|
|
|
inherit config;
|
|
|
|
|
2012-01-19 07:56:17 -08:00
|
|
|
preHook =
|
|
|
|
''
|
|
|
|
export NIX_ENFORCE_PURITY=1
|
|
|
|
export NIX_IGNORE_LD_THROUGH_GCC=1
|
|
|
|
|
|
|
|
if [ "$system" = "i686-darwin" -o "$system" = "powerpc-darwin" -o "$system" = "x86_64-darwin" ]; then
|
|
|
|
export NIX_DONT_SET_RPATH=1
|
|
|
|
export NIX_NO_SELF_RPATH=1
|
|
|
|
dontFixLibtool=1
|
2012-12-28 07:41:56 -08:00
|
|
|
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
|
2012-01-19 07:56:17 -08:00
|
|
|
xargsFlags=" "
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
|
2006-07-14 01:35:59 -07:00
|
|
|
initialPath = (import ../common-path.nix) {pkgs = pkgs;};
|
2004-03-11 09:26:14 -08:00
|
|
|
|
2009-02-02 07:03:38 -08:00
|
|
|
system = stdenv.system;
|
2004-03-11 09:26:14 -08:00
|
|
|
|
2006-07-14 02:28:09 -07:00
|
|
|
gcc = import ../../build-support/gcc-wrapper {
|
2004-03-11 09:26:14 -08:00
|
|
|
nativeTools = false;
|
2006-10-24 11:26:23 -07:00
|
|
|
nativeLibc = true;
|
2004-03-11 09:26:14 -08:00
|
|
|
inherit stdenv;
|
2012-12-28 07:41:56 -08:00
|
|
|
binutils =
|
2006-07-14 15:34:24 -07:00
|
|
|
if stdenv.isDarwin then
|
2006-07-14 06:34:39 -07:00
|
|
|
import ../../build-support/native-darwin-cctools-wrapper {inherit stdenv;}
|
2006-07-14 04:59:38 -07:00
|
|
|
else
|
|
|
|
pkgs.binutils;
|
2012-04-23 08:47:37 -07:00
|
|
|
gcc = pkgs.gcc.gcc;
|
2009-11-20 08:56:11 -08:00
|
|
|
coreutils = pkgs.coreutils;
|
2006-10-17 07:06:18 -07:00
|
|
|
shell = pkgs.bash + "/bin/sh";
|
2004-03-11 09:26:14 -08:00
|
|
|
};
|
|
|
|
|
2006-10-17 07:06:18 -07:00
|
|
|
shell = pkgs.bash + "/bin/sh";
|
2006-05-31 08:08:25 -07:00
|
|
|
|
2008-06-18 08:09:13 -07:00
|
|
|
fetchurlBoot = stdenv.fetchurlBoot;
|
2012-01-19 10:25:35 -08:00
|
|
|
|
|
|
|
overrides = pkgs_: {
|
|
|
|
inherit gcc;
|
|
|
|
inherit (gcc) binutils;
|
2012-12-28 07:41:56 -08:00
|
|
|
inherit (pkgs)
|
2012-01-19 10:25:35 -08:00
|
|
|
gzip bzip2 xz bash coreutils diffutils findutils gawk
|
|
|
|
gnumake gnused gnutar gnugrep gnupatch perl;
|
|
|
|
};
|
2003-11-03 02:22:00 -08:00
|
|
|
}
|