sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / stdenv / generic / builder.sh
blob2d8d784982a808def8d2a15e75db49d781511f72
1 export PATH=
2 for i in $initialPath; do
3 if [ "$i" = / ]; then i=; fi
4 PATH=$PATH${PATH:+:}$i/bin
5 done
7 mkdir $out
10 echo "export SHELL=$shell"
11 echo "initialPath=\"$initialPath\""
12 echo "defaultNativeBuildInputs=\"$defaultNativeBuildInputs\""
13 echo "defaultBuildInputs=\"$defaultBuildInputs\""
14 echo "$preHook"
15 cat "$setup"
16 } > "$out/setup"
18 # Allow the user to install stdenv using nix-env and get the packages
19 # in stdenv.
20 mkdir $out/nix-support
21 if [ "$propagatedUserEnvPkgs" ]; then
22 printf '%s ' $propagatedUserEnvPkgs > $out/nix-support/propagated-user-env-packages