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-05-22 05:41:35 +03:00
commit 338f91240f
No known key found for this signature in database
GPG key ID: CACB28BA93CE71A2

View file

@ -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
''