21 Commits

Author SHA1 Message Date
Aleksi Hannula 745f12467c minimal-bootstrap: Fix tools in preparation for early cross-compilation
Various packages under minimal-bootstrap explicitly use the musl gcc
wrapper (especially the *-static packages).

In #494106, the desire is to allow these packages to run on a host
platform which may differ from the bootstrap seed platform. That host
platform may be a non-musl platform, and furthermore musl may not even
be available on the desired host architecture.

This change aims to make the packages more generic wrt libc. It is
extracted out of #494106.
2026-06-17 13:34:53 +03:00
Aliaksandr 386925859c minimal-bootstrap: trim coreutils-static output
Remove the empty share directory left behind after pruning installed coreutils documentation. The stage0 bootstrap path only needs the single static coreutils binary and symlink entry points.

Size impact against the previous trimmed output:

- coreutils-static closure: 2,250,112 B -> 2,249,944 B (-168 B)

Assisted-by: codex with gpt-5.5-high
2026-06-08 00:19:19 +03:00
Ben Siraphob b141bb23c9 minimal-bootstrap: post-install trim of locale data, docs, and unused python extensions
Removes content nothing between minimal-bootstrap and stage 4 ever uses: glibc share/i18n + lib/gconv (localedef and iconv() against the bootstrap glibc are never invoked downstream); python lib-dynload/{_decimal,_socket,_asyncio,_hashlib,_blake2,_sha*,_md5,_hmac,CJK codecs,_zoneinfo,_lsprof,syslog} plus idlelib/tkinter/turtle*/ensurepip (glibc's build-time scripts only use os/re/subprocess/argparse/pathlib/collections); binutils bin/{gprof,addr2line,elfedit}; share/{info,man} and gcc share/gcc-*/python (libstdc++ gdb pretty-printers).

Self-size: 940 MB -> ~870 MB. Largest contributors: glibc -38 MB, python -15 MB, binutils -7 MB.
2026-04-26 22:25:28 -07:00
Ben Siraphob f6bbbded6d minimal-bootstrap: trim configure flags and slim python
Adds --enable-checking=release and --disable-{libgomp,libquadmath,libitm,libvtv,libssp,libatomic,libstdcxx-pch,nls} to all GCCs (those runtime libs are unused by the stdenv); switches gcc-4.6{,cxx} to install-strip; adds --disable-nls to binutils and coreutils; adds --disable-test-modules --without-ensurepip --without-static-libpython to python.

Bootstrap self-size 1.45 GB -> 940 MB; gcc46-cxx -14%, glibc -10%, gcc-latest -6% wall on the heavy builds.

(make -j was tried on tcc-built derivations and broke them silently; NOTE comments left in the affected files so this isn't re-attempted.)
2026-04-26 22:25:28 -07:00
Aleksi Hannula 97c6d1a878 minimal-bootstrap.coreutils-static: 9.9 -> 9.10 2026-04-09 12:05:52 +03:00
Aleksi Hannula cee236c320 minimal-bootstrap.coreutils-musl: 9.9 -> 9.10 2026-04-09 12:05:52 +03:00
Aleksi Hannula c5bfaab642 minimal-bootstrap.*-static: strip outputs 2026-03-05 12:40:20 +02:00
Aleksi Hannula ab04cbf74b minimal-bootstrap.musl-tcc: 1.1.24 -> 1.2.5 2026-01-14 22:47:35 +02:00
Aleksi Hannula 5c3ae8e8cc minimal-bootstrap: allow building through pkgsMusl 2026-01-14 22:47:35 +02:00
Aleksi Hannula 37b28b8958 minimal-bootstrap: speed up ./configure
By default, stdenv runs configure using --disable-dependency-tracking.
This commit adds the same flag to most manual invocations of autotools
configure scripts in minimal-bootstrap.

However, the flag does not apply to musl & zlib, which come with
handwritten configure scripts. It also does not apply to Python, where
the dependency tracking feature is already disabled in automake config.
2026-01-14 22:47:35 +02:00
Aleksi Hannula 3de87cafbd minimal-bootstrap.coreutils{,-static}: 9.4 -> 9.9 2026-01-14 22:47:34 +02:00
Emily Trau b707bde4ea minimal-bootstrap.coreutils-static: init at 9.4 2025-12-17 12:39:55 -05:00
dish 2d7ae75a42 minimal-bootstrap.coreutils-musl: Fix build
Disable chdir_long support since even though the symbol exists, it can't
be found, which causes build errors.
2025-12-10 23:22:30 -05:00
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Fernando Rodrigues 05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
Emily Trau d2c4f9a4fc minimal-bootstrap.coreutils-musl: change pname to not break nix-env 2023-10-19 17:53:56 -03:00
Emily Trau a680950c88 minimal-bootstrap.coreutils-musl: init at 9.4 2023-09-26 22:20:35 -07:00
Emily Trau 5a4800d69c minimal-bootstrap.coreutils: backport uniq stdio patch 2023-05-23 09:36:02 +10:00
Emily Trau 8f616ec0ac minimal-bootstrap.coreutils: init at 5.0 2023-05-18 18:37:44 +10:00