* 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
+5 -4
View File
@@ -6,12 +6,13 @@ done
mkdir $out
sed \
-e "s^@preHook@^$preHook^g" \
echo "$preHook" > $out/setup
cat "$setup" >> $out/setup
sed -i "$out/setup" \
-e "s^@initialPath@^$initialPath^g" \
-e "s^@gcc@^$gcc^g" \
-e "s^@shell@^$shell^g" \
< "$setup" > "$out/setup"
-e "s^@shell@^$shell^g"
# Allow the user to install stdenv using nix-env and get the packages
# in stdenv.