* "sed -i" isn't very portable, so don't use it here.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31705
This commit is contained in:
Eelco Dolstra 2012-01-19 16:23:14 +00:00
parent 698c4d296b
commit 6b8e8bfedb

View File

@ -9,10 +9,11 @@ mkdir $out
echo "$preHook" > $out/setup
cat "$setup" >> $out/setup
sed -i "$out/setup" \
-e "s^@initialPath@^$initialPath^g" \
sed -e "s^@initialPath@^$initialPath^g" \
-e "s^@gcc@^$gcc^g" \
-e "s^@shell@^$shell^g"
-e "s^@shell@^$shell^g" \
< $out/setup > $out/setup.tmp
mv $out/setup.tmp $out/setup
# Allow the user to install stdenv using nix-env and get the packages
# in stdenv.