* Prepend the "prehook" rather than sourcing it.

* Don't call xargs with the -r flag in the Darwin bootstrap.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31703
This commit is contained in:
Eelco Dolstra
2012-01-19 15:56:17 +00:00
parent 6208059079
commit ee45e160b1
8 changed files with 40 additions and 37 deletions
+15 -1
View File
@@ -2,7 +2,21 @@
import ../generic {
name = "stdenv-nix";
preHook = ./prehook.sh;
preHook =
''
export NIX_ENFORCE_PURITY=1
export NIX_IGNORE_LD_THROUGH_GCC=1
if [ "$system" = "i686-darwin" -o "$system" = "powerpc-darwin" -o "$system" = "x86_64-darwin" ]; then
export NIX_DONT_SET_RPATH=1
export NIX_NO_SELF_RPATH=1
dontFixLibtool=1
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
xargsFlags=" "
fi
'';
initialPath = (import ../common-path.nix) {pkgs = pkgs;};
system = stdenv.system;