Commit Graph

11 Commits

Author SHA1 Message Date
Eman Resu
cc5d66da04 minimal-bootstrap/bash2: store removed attribute names in higher scope 2026-07-26 02:24:44 -04:00
Eman Resu
179159b2cd minimal-bootstrap/bash2: do less work with PATH 2026-07-26 02:22:27 -04:00
Eman Resu
861dc26583 minimal-bootstrap/bash2: only create builder once 2026-07-26 02:20:14 -04:00
Emily Trau
f2d7930395 minimal-bootstrap.bash-static: init at 5.2.15 2025-12-17 12:41:19 -05:00
dish
e1b215735e minimal-bootstrap.bash_2_05: fix building with tcc with newer patches 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
14f2ba715d minimal-bootstrap.bash{,_2_05}: Normalize the NIX_BUILD_CORES variable 2023-10-23 01:07:25 +00:00
Emily Trau
1412b43970 minimal-bootstrap.bash_2_05: init at 2.05b 2023-05-18 22:05:30 +10:00