mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
cf5986d6ce
commit
978f2e3f80
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue