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