8d28093ffb
GitOrigin-RevId: 31ffc50c571e6683e9ecc9dbcbd4a8e9914b4497
23 lines
604 B
Bash
23 lines
604 B
Bash
export PATH=
|
|
for i in $initialPath; do
|
|
if [ "$i" = / ]; then i=; fi
|
|
PATH=$PATH${PATH:+:}$i/bin
|
|
done
|
|
|
|
mkdir $out
|
|
|
|
{
|
|
echo "export SHELL=$shell"
|
|
echo "initialPath=\"$initialPath\""
|
|
echo "defaultNativeBuildInputs=\"$defaultNativeBuildInputs\""
|
|
echo "defaultBuildInputs=\"$defaultBuildInputs\""
|
|
echo "$preHook"
|
|
cat "$setup"
|
|
} > "$out/setup"
|
|
|
|
# Allow the user to install stdenv using nix-env and get the packages
|
|
# in stdenv.
|
|
mkdir $out/nix-support
|
|
if [ "$propagatedUserEnvPkgs" ]; then
|
|
printf '%s ' $propagatedUserEnvPkgs > $out/nix-support/propagated-user-env-packages
|
|
fi
|