Commit Graph

17 Commits

Author SHA1 Message Date
Eman Resu
e577fa2b35 minimal-bootstrap/writeTextFile: create builders ahead of time 2026-07-26 02:30:04 -04:00
Eman Resu
0840b8d651 minimal-bootstrap/writeTextFile: only create PATH once 2026-07-26 01:46:07 -04:00
Eman Resu
018f499f09 minimal-bootstrap/writeTextFile: avoid an extra dirOf call 2026-07-26 01:20:43 -04:00
Eman Resu
07e98119ac minimal-bootstrap/derivationWithMeta: only list removed attribute names once 2026-07-26 01:43:14 -04:00
Eman Resu
edfd0da8d1 minimal-bootstrap/derivationWithMeta: avoid merging if passthru doesn't have tests 2026-07-26 01:34:53 -04:00
dish
450baffdb5 minimal-bootstrap: only create one derivation for mes sources (#519568) 2026-06-14 17:18:14 +00:00
Eman Resu
c546655fb0 check-meta: only take hostPlatform for functions requiring it
By doing this, we can cache the rest of the file, including the import
of problems.nix. This allows genCheckProblems to be cached on every
bootstrapping stage, and not re-called each time.
2026-05-29 16:51:26 -04:00
Eman Resu
a7338726f5 minimal-bootstrap: avoid forcing meta definition
The result of commonMeta is never actually needed if assertValidity goes
away, and `.meta` is never accessed from the derivation. We perform a
similar optimization in stdenv.mkDerivation.
2026-05-13 21:09:53 -04:00
Artemis Tosini
adcdb28c45 minimal-bootstrap: Honor config.contentAddressedByDefault 2026-04-14 16:48:45 -04: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
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
0a41b1e285 minimal-bootstrap.writeTextFile: don't force preferLocalBuild as local system might not support stage0-posix 2023-06-25 13:59:41 +10:00
Emily Trau
e433d32958 minimal-bootstrap: remove imports from outside bootstrap 2023-05-22 21:23:55 +10:00
John Ericson
6dfead1d52 minimal-bootstrap.derivationWithMeta: Do more conds at eval time
Nice to keep run time as simple as possible / embrace phase separations.
2023-05-14 18:56:01 -04:00
John Ericson
207bab5062 minimal-bootstrap: Support passthru.tests 2023-05-14 15:16:55 -04:00
Emily Trau
aa0a36bcd8 minimal-bootstrap.kaem: move runCommand into kaem 2023-05-12 01:43:40 +10:00
Emily Trau
c5432d1f96 minimal-bootstrap: move utils out of stage0-posix 2023-05-03 15:29:31 +10:00