Commit Graph

28 Commits

Author SHA1 Message Date
Eman Resu
567847e665 minimal-bootstrap/mes: partially apply removePrefix 2026-07-20 10:30:10 -04:00
Eman Resu
2351a8df54 minimal-bootstrap: only create one derivation for mes sources
Co-authored-by: Aleksi Hannula <ahannula4+nixgit@gmail.com>
2026-05-13 21:09:50 -04:00
r-vdp
33a22fc16b minimal-bootstrap.mes: convert sources from Nix to JSON
Replace sources.nix with sources.json, consumed via lib.importJSON.
Update gen-sources.sh to emit JSON using jq for correctness.
2026-03-03 10:06:52 +01:00
Aleksi Hannula
839e2de5d8 minimal-bootstrap.mes: Support x86_64-linux
Some changes made here are specific to x86_64, while others are applied
only to support an upgraded tinycc version later on.

x86_64-related:
- We use ${arch} over "x86" in various places.
- gen-sources.sh changed to support x86_64; sources.nix regenerated.
- nyacc was downgraded. Newer nyacc introduces a known regression that
  causes incompatibility with mes, specifically on x86_64.
  This is honestly a mes bug, but it is hard to patch.
- The x86_64 longjmp/setjmp infrastructure from mes-libc is replaced with a
  custom implementation. The original implementation handles stack-related
  registers incorrectly, and it's hard to fix without resorting to asm.
- Assorted bugfixes for mes-libc; see mes/default.nix for explanation.

To upgrade tinycc:
- We download an implementation of ldexpl from an upstream development version.
2025-12-13 11:27:13 +02:00
dish
873fec39eb minimal-bootstrap.mes.nyacc: 1.00.2 -> 2.02.2; minimal-bootstrap.mes: 0.25 -> 0.27.1 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
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +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
3dcd819caa minimal-bootstrap.mes: 0.24.2 -> 0.25 2023-11-22 10:49:51 +00:00
Emily Trau
fd61c0eee0 minimal-bootstrap.mes: remove unneeded platform flag 2023-09-11 22:08:59 -07:00
Emily Trau
bc87c59c15 minimal-bootstrap.mes: remove unused import 2023-05-22 22:05:21 +10:00
Emily Trau
b405a6f7c7 maintainers: add minimal-bootstrap team 2023-05-18 09:15:40 +10:00
John Ericson
5b2b3950f0 minimal-bootstrap.mes: replaceExt -> stripExt 2023-05-16 00:22:17 -04:00
John Ericson
23f849f49d minimal-boostrap.mes: Separate compiler and libs
This matches tinycc, and what is generally done in Nixpkgs.
2023-05-14 19:27:15 -04:00
John Ericson
a89962887c minimal-bootstrap.mes: Parallelize 2023-05-14 18:59:32 -04:00
Emily Trau
aa0a36bcd8 minimal-bootstrap.kaem: move runCommand into kaem 2023-05-12 01:43:40 +10:00
Emily Trau
1e88aa2594 minimal-bootstrap.mes: generate list of source files 2023-05-03 14:31:40 +10:00
Emily Trau
1b065103f5 minimal-bootstrap.mes: split out mes-libc package 2023-05-02 10:18:34 +10:00
Emily Trau
e055a75edd minimal-bootstrap.ln-boot: init at unstable-2023-05-01 2023-05-02 10:18:34 +10:00
Emily Trau
ae7bbb0e4d minimal-bootstrap.mes: major rewrite for readability 2023-05-02 10:18:34 +10:00
Emily Trau
760ab35487 minimal-bootstrap.nyacc: init at 1.00.2, split from mes 2023-05-02 10:18:34 +10:00
Emily Trau
8950041e2b minimal-bootstrap.mes: inline config.h 2023-05-02 10:18:34 +10:00
Emily Trau
59e11ad4e4 minimal-bootstrap: add meta attributes 2023-05-02 10:18:33 +10:00
Emily Trau
5d423c3ac0 minimal-bootstrap: add source attribution 2023-05-02 10:18:33 +10:00
Emily Trau
71dcd60557 minimal-bootstrap: remove most uses of builtins.fetchTarball 2023-05-02 10:18:32 +10:00
Emily Trau
c8ecd8ed57 minimal-bootstrap.stage0-posix: replace mkKaemDerivation with runCommand 2023-05-02 10:18:32 +10:00
Emily Trau
d0594d2f42 minimal-bootstrap: rename from trusting-trust 2023-05-02 10:18:32 +10:00