2017-07-24 06:53:13 +02:00
|
|
|
export PATH=
|
2009-02-01 22:28:55 +01:00
|
|
|
for i in $initialPath; do
|
2012-01-19 16:29:20 +01:00
|
|
|
if [ "$i" = / ]; then i=; fi
|
2009-02-01 22:28:55 +01:00
|
|
|
PATH=$PATH${PATH:+:}$i/bin
|
|
|
|
done
|
2004-07-02 12:05:53 +02:00
|
|
|
|
2005-02-22 15:32:56 +01:00
|
|
|
mkdir $out
|
2004-07-02 12:05:53 +02:00
|
|
|
|
2021-07-19 08:19:43 +02:00
|
|
|
{
|
|
|
|
echo "export SHELL=$shell"
|
|
|
|
echo "initialPath=\"$initialPath\""
|
|
|
|
echo "defaultNativeBuildInputs=\"$defaultNativeBuildInputs\""
|
|
|
|
echo "defaultBuildInputs=\"$defaultBuildInputs\""
|
|
|
|
echo "$preHook"
|
|
|
|
cat "$setup"
|
|
|
|
} > "$out/setup"
|
2012-01-19 16:56:17 +01:00
|
|
|
|
2009-04-25 16:08:29 +02:00
|
|
|
# Allow the user to install stdenv using nix-env and get the packages
|
|
|
|
# in stdenv.
|
2017-08-18 04:07:03 +02:00
|
|
|
mkdir $out/nix-support
|
2017-07-10 17:59:14 +02:00
|
|
|
if [ "$propagatedUserEnvPkgs" ]; then
|
2017-08-18 04:07:03 +02:00
|
|
|
printf '%s ' $propagatedUserEnvPkgs > $out/nix-support/propagated-user-env-packages
|
2017-07-10 17:59:14 +02:00
|
|
|
fi
|