mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
17 lines
451 B
Bash
17 lines
451 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" > $out/setup
|
|
echo "initialPath=\"$initialPath\"" >> $out/setup
|
|
echo "$preHook" >> $out/setup
|
|
cat "$setup" >> $out/setup
|
|
|
|
# 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
|