15103e5e5f
Now gcc is just another build input, making it possible in the future to have a stdenv that doesn't depend on a C compiler. This is very useful on NixOS, since it would allow trivial builders like writeTextFile to work without pulling in the C compiler.
21 lines
496 B
Bash
21 lines
496 B
Bash
export PATH=
|
|
for i in $initialPath; do
|
|
if [ "$i" = / ]; then i=; fi
|
|
PATH=$PATH${PATH:+:}$i/bin
|
|
done
|
|
|
|
mkdir $out
|
|
|
|
echo "$preHook" > $out/setup
|
|
cat "$setup" >> $out/setup
|
|
|
|
sed -e "s^@initialPath@^$initialPath^g" \
|
|
-e "s^@shell@^$shell^g" \
|
|
< $out/setup > $out/setup.tmp
|
|
mv $out/setup.tmp $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
|