* Darwin (Mac OS X) standard environment.
svn path=/nixpkgs/trunk/; revision=1031
This commit is contained in:
parent
6b2348542a
commit
1b47486557
|
@ -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";
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
export NIX_ENFORCE_PURITY=
|
||||
export NIX_DONT_SET_RPATH=1
|
||||
export NIX_NO_SELF_RPATH=1
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{ inherit ((import ./all-packages.nix) {system = "powerpc-darwin7.3.0";})
|
||||
aterm strategoxt subversion;
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue