From 61300f0b34bd7c16f2bf87fa6c2bdffa1a97c71d Mon Sep 17 00:00:00 2001 From: Aliaksandr Date: Fri, 22 May 2026 05:42:33 +0300 Subject: [PATCH] minimal-bootstrap: trim gnumake-static output Disable NLS and remove installed headers and documentation. The bootstrap path only needs the static make binary. Size impact against upstream/staging: - gnumake-static closure: 0.963 MiB -> 0.325 MiB (-0.638 MiB) Assisted-by: codex with gpt-5.5-high --- pkgs/os-specific/linux/minimal-bootstrap/gnumake/static.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/os-specific/linux/minimal-bootstrap/gnumake/static.nix b/pkgs/os-specific/linux/minimal-bootstrap/gnumake/static.nix index 1a7da3f1aff3..d24f0e6d12ce 100644 --- a/pkgs/os-specific/linux/minimal-bootstrap/gnumake/static.nix +++ b/pkgs/os-specific/linux/minimal-bootstrap/gnumake/static.nix @@ -79,6 +79,7 @@ bash.runCommand "${pname}-${version}" --build=${buildPlatform.config} \ --host=${hostPlatform.config} \ --disable-dependency-tracking \ + --disable-nls \ CC=musl-gcc \ CFLAGS="-static -std=gnu17" @@ -87,4 +88,7 @@ bash.runCommand "${pname}-${version}" # Install make -j $NIX_BUILD_CORES install-strip + + # Remove files not needed to execute make in the bootstrap chain. + rm -rf $out/include $out/share ''