mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
ee45e160b1
* Don't call xargs with the -r flag in the Darwin bootstrap. svn path=/nixpkgs/branches/stdenv-updates/; revision=31703
21 lines
479 B
Bash
21 lines
479 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 -i "$out/setup" \
|
|
-e "s^@initialPath@^$initialPath^g" \
|
|
-e "s^@gcc@^$gcc^g" \
|
|
-e "s^@shell@^$shell^g"
|
|
|
|
# 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
|