* 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
+12 -11
View File
@@ -11,22 +11,23 @@ rec {
(if system == "i686-netbsd" then [ "/usr/pkg" ] else []) ++
["/" "/usr" "/usr/local"];
prehookBase = builtins.toFile "prehook-base.sh" ''
prehookBase = ''
# Disable purity tests; it's allowed (even needed) to link to
# libraries outside the Nix store (like the C library).
export NIX_ENFORCE_PURITY=
'';
prehookDarwin = builtins.toFile "prehook-darwin.sh" ''
source ${prehookBase}
prehookDarwin = ''
${prehookBase}
export NIX_DONT_SET_RPATH=1
export NIX_NO_SELF_RPATH=1
dontFixLibtool=1
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
xargsFlags=" "
'';
prehookFreeBSD = builtins.toFile "prehook-freebsd.sh" ''
source ${prehookBase}
prehookFreeBSD = ''
${prehookBase}
alias make=gmake
alias tar=gtar
@@ -38,8 +39,8 @@ rec {
export NIX_GCC_NEEDS_GREP=1
'';
prehookOpenBSD = builtins.toFile "prehook-openbsd.sh" ''
source ${prehookBase}
prehookOpenBSD = ''
${prehookBase}
alias make=gmake
alias grep=ggrep
@@ -55,8 +56,8 @@ rec {
export NIX_GCC_NEEDS_GREP=1
'';
prehookNetBSD = builtins.toFile "prehook-netbsd.sh" ''
source ${prehookBase}
prehookNetBSD = ''
${prehookBase}
alias make=gmake
alias sed=gsed
@@ -68,8 +69,8 @@ rec {
export NIX_GCC_NEEDS_GREP=1
'';
prehookCygwin = builtins.toFile "prehook-cygwin.sh" ''
source ${prehookBase}
prehookCygwin = ''
${prehookBase}
if test -z "$cygwinConfigureEnableShared"; then
export configureFlags="$configureFlags --disable-shared"