stdenv: Don't use sed to build the setup script

This commit is contained in:
Eelco Dolstra
2014-08-09 12:45:52 +02:00
parent be3fc3ae2f
commit e3875297fa
3 changed files with 9 additions and 19 deletions
+3 -6
View File
@@ -6,14 +6,11 @@ done
mkdir $out
echo "$preHook" > $out/setup
echo "export SHELL=$shell" > $out/setup
echo "initialPath=\"$initialPath\"" >> $out/setup
echo "$preHook" >> $out/setup
cat "$setup" >> $out/setup
sed -e "s^@initialPath@^$initialPath^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.
mkdir $out/nix-support