2017-07-24 05:53:13 +01:00
|
|
|
export PATH=
|
2009-02-01 21:28:55 +00:00
|
|
|
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 11:05:53 +01:00
|
|
|
|
2005-02-22 14:32:56 +00:00
|
|
|
mkdir $out
|
2004-07-02 11:05:53 +01:00
|
|
|
|
2014-07-01 16:39:07 +01:00
|
|
|
echo "export SHELL=$shell" > $out/setup
|
|
|
|
echo "initialPath=\"$initialPath\"" >> $out/setup
|
2017-08-18 03:07:03 +01:00
|
|
|
echo "defaultNativeBuildInputs=\"$defaultNativeBuildInputs\"" >> $out/setup
|
2017-08-15 16:30:45 +01:00
|
|
|
echo "defaultBuildInputs=\"$defaultBuildInputs\"" >> $out/setup
|
2014-07-01 16:39:07 +01:00
|
|
|
echo "$preHook" >> $out/setup
|
2012-01-19 15:56:17 +00:00
|
|
|
cat "$setup" >> $out/setup
|
|
|
|
|
2009-04-25 15:08:29 +01:00
|
|
|
# Allow the user to install stdenv using nix-env and get the packages
|
|
|
|
# in stdenv.
|
2017-08-18 03:07:03 +01:00
|
|
|
mkdir $out/nix-support
|
2017-07-10 16:59:14 +01:00
|
|
|
if [ "$propagatedUserEnvPkgs" ]; then
|
2017-08-18 03:07:03 +01:00
|
|
|
printf '%s ' $propagatedUserEnvPkgs > $out/nix-support/propagated-user-env-packages
|
2017-07-10 16:59:14 +01:00
|
|
|
fi
|