From 338f91240fc29826aa672597e2d7e312155f1369 Mon Sep 17 00:00:00 2001 From: Aliaksandr Date: Fri, 22 May 2026 05:41:35 +0300 Subject: [PATCH] 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 --- pkgs/os-specific/linux/minimal-bootstrap/bash/static.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/os-specific/linux/minimal-bootstrap/bash/static.nix b/pkgs/os-specific/linux/minimal-bootstrap/bash/static.nix index 742379b94603..31ec4ebc5836 100644 --- a/pkgs/os-specific/linux/minimal-bootstrap/bash/static.nix +++ b/pkgs/os-specific/linux/minimal-bootstrap/bash/static.nix @@ -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 ''