6208059079
svn path=/nixpkgs/branches/stdenv-updates/; revision=31702
20 lines
472 B
Bash
20 lines
472 B
Bash
export PATH=
|
|
for i in $initialPath; do
|
|
if [ "$i" = / ]; then i=; fi
|
|
PATH=$PATH${PATH:+:}$i/bin
|
|
done
|
|
|
|
mkdir $out
|
|
|
|
sed \
|
|
-e "s^@preHook@^$preHook^g" \
|
|
-e "s^@initialPath@^$initialPath^g" \
|
|
-e "s^@gcc@^$gcc^g" \
|
|
-e "s^@shell@^$shell^g" \
|
|
< "$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
|