Commit Graph

21 Commits

Author SHA1 Message Date
Ben Siraphob
db3241d439 minimal-bootstrap: separate musl tools from runtime 2026-09-20 11:10:27 -07:00
Aleksi Hannula
d48885dee8 minimal-bootstrap.musl-headers: init at 1.2.6 2026-07-27 21:12:08 +03:00
Aleksi Hannula
0150e1894f minimal-bootstrap: Use minimal gcc wrapper 2026-06-16 18:35:34 +03: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
b823e3b333 minimal-bootstrap.musl*: 1.2.5 -> 1.2.6 2026-04-04 08:50:06 +03:00
Aleksi Hannula
c5bfaab642 minimal-bootstrap.*-static: strip outputs 2026-03-05 12:40:20 +02:00
Aleksi Hannula
bb79e972f9 minimal-bootstrap.musl-static: init at 1.2.5 2026-01-26 21:45:18 +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
60cbef83e0 minimal-bootstrap.musl: Support x86_64-linux
We now build tinycc-musl through an intermediate stage.
BEFORE:
tinycc-mes (links to mes-libc) -> musl -> tinycc-musl (links to musl)
NOW:
tinycc-mes (links to mes-libc) -> musl-intermediate
  -> tinycc-musl-intermediate -> musl -> tinycc-musl

This fixes some issues with handling floating-point numbers:
certain float routines are not implemented are not implemented in mes-libc,
which would cause a miscompiled musl in the old approach.

Certain unnecessary musl patches are dropped. It is especially important to
remove the weak symbol patch, which in fact breaks the build.

tinycc-musl is upgraded to the latest "mob" version, with a couple bugfixes.
2025-12-13 11:27:13 +02:00
Luna Nova
8d0938c9de minimal-bootstrap.musl11: add stdio_flush_on_exit.patch, drop always-flush.patch
The upstream version of this patch has been commented out
since 913e70d77b, due to
error: implicit declaration of function '__stdio_exit'

Revived this approach by updating the patch to forward declare.
2025-12-10 23:22:31 -05:00
dish
6bcba60b3d minimal-bootstrap.musl11: Fix build with newer tcc 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 a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Emily Trau
12fe603cd7 minimal-bootstrap.musl: enable gcc wrapper 2023-10-06 18:54:56 -07:00
Emily Trau
3e95cadee8 minimal-bootstrap.musl: parallelise build 2023-09-26 22:20:35 -07:00
Emily Trau
7287781fc3 minimal-bootstrap.musl11: always flush stdio 2023-09-26 22:20:34 -07:00
Emily Trau
1340efd490 minimal-bootstrap.musl: remove optional gawk dependency
appears to only be used to optionally add extra debugging information
2023-09-17 23:27:42 -07:00
Emily Trau
913e70d77b minimal-bootstrap.musl11: init at 1.1.24 2023-09-17 18:54:09 -07:00
Emily Trau
5171b87765 minimal-bootstrap.musl: init at 1.2.4 2023-09-12 22:40:23 -07:00