mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
9be40841ea
Conflicts: pkgs/build-support/cc-wrapper/default.nix pkgs/build-support/gcc-wrapper-old/builder.sh pkgs/build-support/trivial-builders.nix pkgs/desktops/kde-4.14/kde-package/default.nix pkgs/development/compilers/openjdk-darwin/8.nix pkgs/development/compilers/openjdk-darwin/default.nix pkgs/development/compilers/openjdk/7.nix pkgs/development/compilers/openjdk/8.nix pkgs/development/compilers/oraclejdk/jdk-linux-base.nix pkgs/development/compilers/zulu/default.nix pkgs/development/haskell-modules/generic-builder.nix pkgs/misc/misc.nix pkgs/stdenv/generic/builder.sh pkgs/stdenv/generic/setup.sh
21 lines
580 B
Bash
21 lines
580 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
|
|
if [ "$propagatedUserEnvPkgs" ]; then
|
|
printf '%s ' $propagatedUserEnvPkgs > $out/nix-support/propagated-user-env-packages
|
|
fi
|