minimal-bootstrap: trim gnugrep-static output

Disable NLS and remove installed documentation after keeping only the grep binary. The existing egrep and fgrep pruning remains in place.

Size impact against upstream/staging:

- gnugrep-static closure: 0.546 MiB -> 0.381 MiB (-0.165 MiB)

Assisted-by: codex with gpt-5.5-high
This commit is contained in:
Aliaksandr 2026-05-22 05:42:50 +03:00
commit 978f2e3f80
No known key found for this signature in database
GPG key ID: CACB28BA93CE71A2

View file

@ -70,6 +70,7 @@ bash.runCommand "${pname}-${version}"
--build=${buildPlatform.config} \
--host=${hostPlatform.config} \
--disable-dependency-tracking \
--disable-nls \
CC=musl-gcc \
CFLAGS=-static
@ -79,4 +80,7 @@ bash.runCommand "${pname}-${version}"
# Install
make -j $NIX_BUILD_CORES install-strip
rm $out/bin/{egrep,fgrep}
# Remove documentation not needed in the bootstrap chain.
rm -rf $out/share
''