From cf5986d6ce1563ee59016e9341e4387a03e2e34b Mon Sep 17 00:00:00 2001 From: Aliaksandr Date: Fri, 22 May 2026 05:42:42 +0300 Subject: [PATCH] minimal-bootstrap: trim diffutils-static output Disable NLS and remove installed documentation from the static diffutils output. The bootstrap path keeps the diff, cmp, diff3, and sdiff binaries. Size impact against upstream/staging: - diffutils-static closure: 0.896 MiB -> 0.661 MiB (-0.235 MiB) Assisted-by: codex with gpt-5.5-high --- pkgs/os-specific/linux/minimal-bootstrap/diffutils/static.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/os-specific/linux/minimal-bootstrap/diffutils/static.nix b/pkgs/os-specific/linux/minimal-bootstrap/diffutils/static.nix index 063d1f0a4100..f46805411c61 100644 --- a/pkgs/os-specific/linux/minimal-bootstrap/diffutils/static.nix +++ b/pkgs/os-specific/linux/minimal-bootstrap/diffutils/static.nix @@ -69,6 +69,7 @@ bash.runCommand "${pname}-${version}" --build=${buildPlatform.config} \ --host=${hostPlatform.config} \ --disable-dependency-tracking \ + --disable-nls \ CC=musl-gcc \ CFLAGS=-static \ ac_cv_path_PR_PROGRAM=pr @@ -78,4 +79,7 @@ bash.runCommand "${pname}-${version}" # Install make -j $NIX_BUILD_CORES install-strip + + # Remove documentation not needed in the bootstrap chain. + rm -rf $out/share ''