about summary refs log tree commit diff
path: root/pkgs/stdenv/native
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-01-19 15:56:17 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-01-19 15:56:17 +0000
commitee45e160b1fc2a8d32233bd7647e5e5fb72a486a (patch)
treefc768fb08125e1829f895732ba32a807942efba7 /pkgs/stdenv/native
parent6208059079571059cdf462942584efa88f37b52e (diff)
downloadnixlib-ee45e160b1fc2a8d32233bd7647e5e5fb72a486a.tar
nixlib-ee45e160b1fc2a8d32233bd7647e5e5fb72a486a.tar.gz
nixlib-ee45e160b1fc2a8d32233bd7647e5e5fb72a486a.tar.bz2
nixlib-ee45e160b1fc2a8d32233bd7647e5e5fb72a486a.tar.lz
nixlib-ee45e160b1fc2a8d32233bd7647e5e5fb72a486a.tar.xz
nixlib-ee45e160b1fc2a8d32233bd7647e5e5fb72a486a.tar.zst
nixlib-ee45e160b1fc2a8d32233bd7647e5e5fb72a486a.zip
* 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
Diffstat (limited to 'pkgs/stdenv/native')
-rw-r--r--pkgs/stdenv/native/default.nix23
1 files changed, 12 insertions, 11 deletions
diff --git a/pkgs/stdenv/native/default.nix b/pkgs/stdenv/native/default.nix
index 1f3fa69d51b0..3319a0d92719 100644
--- a/pkgs/stdenv/native/default.nix
+++ b/pkgs/stdenv/native/default.nix
@@ -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"