* Darwin (Mac OS X) standard environment.
svn path=/nixpkgs/trunk/; revision=1031
This commit is contained in:
parent
6b2348542a
commit
1b47486557
19
pkgs/stdenv/darwin/default.nix
Normal file
19
pkgs/stdenv/darwin/default.nix
Normal 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";
|
||||||
|
}
|
3
pkgs/stdenv/darwin/prehook.sh
Normal file
3
pkgs/stdenv/darwin/prehook.sh
Normal file
|
@ -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.
|
# Select the right instantiation.
|
||||||
body =
|
body =
|
||||||
if system == "i686-linux"
|
if system == "i686-linux" then stdenvs.stdenvLinuxPkgs
|
||||||
then stdenvs.stdenvLinuxPkgs
|
else if system == "powerpc-darwin7.3.0" then stdenvs.stdenvDarwinPkgs
|
||||||
else (stdenvs.stdenvNixPkgs);
|
else stdenvs.stdenvNativePkgs;
|
||||||
}
|
}
|
||||||
|
|
3
pkgs/system/powerpc-darwin.nix
Normal file
3
pkgs/system/powerpc-darwin.nix
Normal file
|
@ -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
|
# On the other hand, a validating build of glibc is a good idea (it
|
||||||
# probably won't work right now due to --rpath madness).
|
# 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 a new issue