diff options
author | happysalada <raphael@megzari.com> | 2021-07-19 15:19:43 +0900 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-08-30 10:24:30 +0900 |
commit | 1200c8175c1d4fae641a93e5d863cc0a0db83fbc (patch) | |
tree | a5782bad8b4ba926108502af976dff98e0947cc1 /pkgs/stdenv | |
parent | 54475daa2792576cf122293c65a687acc0f42984 (diff) |
stdenv: reduce io
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r-- | pkgs/stdenv/generic/builder.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/stdenv/generic/builder.sh b/pkgs/stdenv/generic/builder.sh index 79bf21ab47308..2d8d784982a80 100644 --- a/pkgs/stdenv/generic/builder.sh +++ b/pkgs/stdenv/generic/builder.sh @@ -6,12 +6,14 @@ done mkdir $out -echo "export SHELL=$shell" > $out/setup -echo "initialPath=\"$initialPath\"" >> $out/setup -echo "defaultNativeBuildInputs=\"$defaultNativeBuildInputs\"" >> $out/setup -echo "defaultBuildInputs=\"$defaultBuildInputs\"" >> $out/setup -echo "$preHook" >> $out/setup -cat "$setup" >> $out/setup +{ + echo "export SHELL=$shell" + echo "initialPath=\"$initialPath\"" + echo "defaultNativeBuildInputs=\"$defaultNativeBuildInputs\"" + echo "defaultBuildInputs=\"$defaultBuildInputs\"" + echo "$preHook" + cat "$setup" +} > "$out/setup" # Allow the user to install stdenv using nix-env and get the packages # in stdenv. |