minimal-bootstrap: trim bash-static output

Disable NLS and remove installed documentation from the static bash used in stage0. The bootstrap path keeps bash and the sh symlink only.

Size impact against upstream/staging:

- bash-static closure: 9.643 MiB -> 1.333 MiB (-8.310 MiB)

Assisted-by: codex with gpt-5.5-high
This commit is contained in:
Aliaksandr
2026-06-08 00:09:35 +03:00
parent 9f3e988fbf
commit 338f91240f
@@ -63,6 +63,7 @@ bash.runCommand "${pname}-${version}"
--host=${hostPlatform.config} \
--without-bash-malloc \
--disable-dependency-tracking \
--disable-nls \
--enable-static-link \
CC=musl-gcc
@@ -72,5 +73,6 @@ bash.runCommand "${pname}-${version}"
# Install
make -j $NIX_BUILD_CORES install-strip
rm $out/bin/bashbug
rm -rf $out/share
ln -s $out/bin/bash $out/bin/sh
''