2009-02-01 13:28:55 -08:00
|
|
|
export PATH=
|
|
|
|
for i in $initialPath; do
|
2012-01-19 07:29:20 -08:00
|
|
|
if [ "$i" = / ]; then i=; fi
|
2009-02-01 13:28:55 -08:00
|
|
|
PATH=$PATH${PATH:+:}$i/bin
|
|
|
|
done
|
2004-07-02 03:05:53 -07:00
|
|
|
|
2005-02-22 06:32:56 -08:00
|
|
|
mkdir $out
|
2004-07-02 03:05:53 -07:00
|
|
|
|
2014-07-01 08:39:07 -07:00
|
|
|
echo "export SHELL=$shell" > $out/setup
|
|
|
|
echo "initialPath=\"$initialPath\"" >> $out/setup
|
2014-11-06 03:10:28 -08:00
|
|
|
echo "defaultNativeBuildInputs=\"$defaultNativeBuildInputs\"" >> $out/setup
|
2014-07-01 08:39:07 -07:00
|
|
|
echo "$preHook" >> $out/setup
|
2012-01-19 07:56:17 -08:00
|
|
|
cat "$setup" >> $out/setup
|
|
|
|
|
2009-04-25 07:08:29 -07: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
|