mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
fbab1d485b
This version continues to use bash + stdenv/setup for the default inputs.
22 lines
644 B
Bash
22 lines
644 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 "defaultNativeBuildInputs=\"$defaultNativeBuildInputs\"" >> $out/setup
|
|
echo "defaultBuildInputs=\"$defaultBuildInputs\"" >> $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
|
|
if [ "$propagatedUserEnvPkgs" ]; then
|
|
printf '%s ' $propagatedUserEnvPkgs > $out/nix-support/propagated-user-env-packages
|
|
fi
|