* On Darwin, use Apple's gcc fork.

svn path=/nixpkgs/trunk/; revision=5715
This commit is contained in:
Eelco Dolstra
2006-07-14 22:34:24 +00:00
parent 4ac32aa639
commit 3defd9a3d3
7 changed files with 265 additions and 4 deletions

View File

@@ -12,11 +12,11 @@ import ../generic {
nativeGlibc = true;
inherit stdenv;
binutils =
if stdenv.system == "i686-darwin" || stdenv.system == "powerpc-darwin" then
if stdenv.isDarwin then
import ../../build-support/native-darwin-cctools-wrapper {inherit stdenv;}
else
pkgs.binutils;
gcc = pkgs.gcc.gcc;
gcc = if stdenv.isDarwin then pkgs.gccApple.gcc else pkgs.gcc.gcc;
shell = pkgs.bash ~ /bin/sh;
};