dd325103df
external binutils (i.e., Apple's cctools in /usr/bin). svn path=/nixpkgs/trunk/; revision=5706
29 lines
676 B
Nix
29 lines
676 B
Nix
{stdenv, pkgs}:
|
|
|
|
import ../generic {
|
|
name = "stdenv-nix";
|
|
preHook = ./prehook.sh;
|
|
initialPath = (import ../common-path.nix) {pkgs = pkgs;};
|
|
|
|
inherit stdenv;
|
|
|
|
gcc = import ../../build-support/gcc-wrapper {
|
|
nativeTools = false;
|
|
nativeGlibc = true;
|
|
inherit stdenv;
|
|
binutils =
|
|
if stdenv.system == "i686-darwin" || stdenv.system == "powerpc-darwin" then
|
|
import ../../build-support/native-darwin-cctools-wrapper {inherit stdenv;};
|
|
else
|
|
pkgs.binutils;
|
|
gcc = pkgs.gcc.gcc;
|
|
shell = pkgs.bash ~ /bin/sh;
|
|
};
|
|
|
|
shell = pkgs.bash ~ /bin/sh;
|
|
|
|
extraAttrs = {
|
|
# Curl should be in /usr/bin or so.
|
|
curl = null;
|
|
};
|
|
}
|