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