mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
minimal-bootstrap: trim gnutar-static output
Disable NLS and remove installed documentation plus the remote tape helper. The stage0 bootstrap path only needs the static tar binary. Size impact against upstream/staging: - gnutar-static closure: 3.772 MiB -> 0.826 MiB (-2.946 MiB) Assisted-by: codex with gpt-5.5-high
This commit is contained in:
parent
0bc798232d
commit
e6c8f21c05
1 changed files with 2 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ bash.runCommand "${pname}-${version}"
|
|||
--build=${buildPlatform.config} \
|
||||
--host=${hostPlatform.config} \
|
||||
--disable-dependency-tracking \
|
||||
--disable-nls \
|
||||
CC=musl-gcc \
|
||||
CFLAGS=-static
|
||||
|
||||
|
|
@ -70,4 +71,5 @@ bash.runCommand "${pname}-${version}"
|
|||
|
||||
# Install
|
||||
make -j $NIX_BUILD_CORES install-strip
|
||||
rm -rf $out/libexec $out/share
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue