2009-02-02 00:28:55 +03:00
|
|
|
export PATH=
|
|
|
|
for i in $initialPath; do
|
2012-01-19 19:29:20 +04:00
|
|
|
if [ "$i" = / ]; then i=; fi
|
2009-02-02 00:28:55 +03:00
|
|
|
PATH=$PATH${PATH:+:}$i/bin
|
|
|
|
done
|
2004-07-02 14:05:53 +04:00
|
|
|
|
2005-02-22 17:32:56 +03:00
|
|
|
mkdir $out
|
2004-07-02 14:05:53 +04:00
|
|
|
|
2012-01-19 19:56:17 +04:00
|
|
|
echo "$preHook" > $out/setup
|
|
|
|
cat "$setup" >> $out/setup
|
|
|
|
|
2012-01-19 20:23:14 +04:00
|
|
|
sed -e "s^@initialPath@^$initialPath^g" \
|
2008-02-13 22:41:37 +03:00
|
|
|
-e "s^@gcc@^$gcc^g" \
|
2012-01-19 20:23:14 +04:00
|
|
|
-e "s^@shell@^$shell^g" \
|
|
|
|
< $out/setup > $out/setup.tmp
|
|
|
|
mv $out/setup.tmp $out/setup
|
2009-04-25 18:08:29 +04:00
|
|
|
|
|
|
|
# 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
|