Commit Graph

17 Commits

Author SHA1 Message Date
Aleksi Hannula
4af58188ea minimal-bootstrap.gnused-static: 4.9 -> 4.10
Added linux-headers to the include path, the new version of the
vendored gnulib depends on a few headers.
2026-08-01 09:17:23 +03:00
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
2c001ac5ad minimal-bootstrap: trim gnused-static output
Disable NLS and remove installed documentation. The stage0 bootstrap path only needs the static sed binary.

Size impact against upstream/staging:

- gnused-static closure: 0.480 MiB -> 0.276 MiB (-0.204 MiB)

Assisted-by: codex with gpt-5.5-high
2026-06-08 00:09:41 +03:00
Ben Siraphob
dd134e69e6 minimal-bootstrap: fix early-musl-userland flake on parallel builds 2026-05-06 15:51:42 +00: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
c5bfaab642 minimal-bootstrap.*-static: strip outputs 2026-03-05 12:40:20 +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
Emily Trau
e336b7c768 minimal-bootstrap.gnused-static: init at 4.9 2025-12-17 12:41:19 -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
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02: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 a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Emily Trau
c9ba05b20d minimal-bootstrap.*: replace uses of musl11 with tinycc-musl.libs 2023-09-26 22:20:35 -07:00
Emily Trau
477a60351c minimal-bootstrap.gnused: replace glibc with musl 2023-09-26 22:20:33 -07:00
Emily Trau
6ce1c92354 minimal-bootstrap.gnused: rebuild with glibc to fix pipe behaviour 2023-07-22 21:51:34 -07:00
Emily Trau
cf25685c7c minimal-bootstrap.gnused: init at 4.0.9 2023-05-20 12:34:43 +10:00