mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
1014620bce
Otherwise, stdenv won't have a reference to e.g. patchelf on Linux (because it was passed in by mkDerivation). This causes the installer tests to fail, because having "stdenv" in the installation CD closure is not enough to pull in all stdenv packages. http://hydra.nixos.org/build/16546643
19 lines
527 B
Bash
19 lines
527 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 "$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
|
|
echo $propagatedUserEnvPkgs > $out/nix-support/propagated-user-env-packages
|