6fd4f63530
This reverts commit e04b17bfbaa4dbd5252d59f727d7d84ffe25f568, reversing changes made to 1af2ada7d4c61e79356a0f3f8bcced6159a6e751.
22 lines
522 B
Bash
22 lines
522 B
Bash
export PATH=
|
|
for i in $initialPath; do
|
|
if [ "$i" = / ]; then i=; fi
|
|
PATH=$PATH${PATH:+:}$i/bin
|
|
done
|
|
|
|
mkdir $out
|
|
|
|
echo "$preHook" > $out/setup
|
|
cat "$setup" >> $out/setup
|
|
|
|
sed -e "s^@initialPath@^$initialPath^g" \
|
|
-e "s^@gcc@^$gcc^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
|
|
echo $propagatedUserEnvPkgs > $out/nix-support/propagated-user-env-packages
|