* Darwin (Mac OS X) standard environment.

svn path=/nixpkgs/trunk/; revision=1031
This commit is contained in:
Eelco Dolstra 2004-05-18 10:59:18 +00:00
parent 6b2348542a
commit 1b47486557
5 changed files with 42 additions and 3 deletions

View file

@ -0,0 +1,19 @@
{stdenv, genericStdenv, gccWrapper}:
genericStdenv {
name = "stdenv-darwin";
preHook = ./prehook.sh;
initialPath = "/usr/local /usr /";
inherit stdenv;
gcc = gccWrapper {
name = "gcc-darwin";
nativeTools = true;
nativeGlibc = true;
nativePrefix = "/usr";
inherit stdenv;
};
shell = "/bin/sh";
}

View file

@ -0,0 +1,3 @@
export NIX_ENFORCE_PURITY=
export NIX_DONT_SET_RPATH=1
export NIX_NO_SELF_RPATH=1

View file

@ -11,7 +11,7 @@
# Select the right instantiation.
body =
if system == "i686-linux"
then stdenvs.stdenvLinuxPkgs
else (stdenvs.stdenvNixPkgs);
if system == "i686-linux" then stdenvs.stdenvLinuxPkgs
else if system == "powerpc-darwin7.3.0" then stdenvs.stdenvDarwinPkgs
else stdenvs.stdenvNativePkgs;
}

View file

@ -0,0 +1,3 @@
{ inherit ((import ./all-packages.nix) {system = "powerpc-darwin7.3.0";})
aterm strategoxt subversion;
}

View file

@ -133,4 +133,18 @@
# On the other hand, a validating build of glibc is a good idea (it
# probably won't work right now due to --rpath madness).
# Darwin (Mac OS X) standard environment. Very simple for now
# (essentially it's just the native environment).
stdenvDarwin = (import ../stdenv/darwin) {
stdenv = stdenvInitial;
inherit genericStdenv gccWrapper;
};
stdenvDarwinPkgs = allPackages {
stdenv = stdenvDarwin;
bootCurl = null;
noSysDirs = false;
};
}