diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-07-14 11:59:38 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-07-14 11:59:38 +0000 |
commit | dd325103dfd192d36c707bc7269e50b1e3339e09 (patch) | |
tree | 6066c9b7951938335f86cf238c5d6fd0ac369882 /pkgs/stdenv/default.nix | |
parent | 2881391565d0de4929fe0c31c73b22defe47d297 (diff) | |
download | nixpkgs-dd325103dfd192d36c707bc7269e50b1e3339e09.tar nixpkgs-dd325103dfd192d36c707bc7269e50b1e3339e09.tar.gz nixpkgs-dd325103dfd192d36c707bc7269e50b1e3339e09.tar.bz2 nixpkgs-dd325103dfd192d36c707bc7269e50b1e3339e09.tar.lz nixpkgs-dd325103dfd192d36c707bc7269e50b1e3339e09.tar.xz nixpkgs-dd325103dfd192d36c707bc7269e50b1e3339e09.tar.zst nixpkgs-dd325103dfd192d36c707bc7269e50b1e3339e09.zip |
* Better stdenv for Darwin: uses gcc, coreutils etc. built in Nix, but
external binutils (i.e., Apple's cctools in /usr/bin). svn path=/nixpkgs/trunk/; revision=5706
Diffstat (limited to 'pkgs/stdenv/default.nix')
-rw-r--r-- | pkgs/stdenv/default.nix | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/stdenv/default.nix b/pkgs/stdenv/default.nix index ee41471d51c..c8482200393 100644 --- a/pkgs/stdenv/default.nix +++ b/pkgs/stdenv/default.nix @@ -37,14 +37,13 @@ rec { # The Nix build environment. - stdenvNix = (import ./nix) { - stdenv = stdenvNative; + stdenvNix = (import ./nix) (rec { + stdenv = if system == "i686-darwin" then stdenvDarwin else stdenvNative; # !!! hack pkgs = allPackages { - bootStdenv = removeAttrs stdenvNative ["gcc"]; # Hack + bootStdenv = removeAttrs stdenv ["gcc"]; # Hack noSysDirs = false; }; - inherit genericStdenv; - }; + }); # Linux standard environment. @@ -81,6 +80,6 @@ rec { else if system == "i686-freebsd" then stdenvFreeBSD else if system == "i686-cygwin" then stdenvCygwin else if system == "powerpc-darwin" then stdenvDarwin - else if system == "i686-darwin" then stdenvDarwin + else if system == "i686-darwin" then stdenvNix else stdenvNative; } |