stdenv: Don't use sed to build the setup script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user