Commit Graph

16 Commits

Author SHA1 Message Date
Eman Resu
22391aa3c9 minimal-bootstrap/bash: store removed attribute names in higher scope 2026-07-26 02:24:05 -04:00
Eman Resu
d7b5db1a5c minimal-bootstrap/bash: only call makeBinPath if necessary 2026-07-26 02:18:07 -04:00
Eman Resu
7c81b9e5c2 minimal-bootstrap/bash: move default build inputs to higher scope 2026-07-26 02:16:10 -04:00
Aleksi Hannula
c0f2616f95 minimal-bootstrap: mark provenance in passthru 2026-01-26 21:45:18 +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
Aleksi Hannula
e9b85ea2c0 minimal-bootstrap.bash{,-static}: 5.2.15 -> 5.3 2026-01-14 14:12:52 +02:00
Emily Trau
f2d7930395 minimal-bootstrap.bash-static: init at 5.2.15 2025-12-17 12:41:19 -05:00
Aleksi Hannula
7296e7958d minimal-bootstrap: Finish x86_64-linux support
- bash upgraded to 5.2.37, which fixes broken logic in the configure script
  relating to strtoimax.
- heirloom stubs fixed to be static, which removes linker issues
- Fixed xz linker issues, stemming from configure script issues
- gnugrep uses broken Makefile from live-bootstrap; vendor a fixed version
2025-12-13 11:27:13 +02: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
1c1962f975 minimal-bootstrap.bash: build with musl 2023-09-26 22:20:35 -07:00
Emily Trau
6195c0e808 minimal-bootstrap.bash: add bin/sh symlink 2023-09-11 20:17:23 -07:00
Emily Trau
3c850627a6 minimal-bootstrap.bash: init at 5.2.15 2023-07-22 21:51:39 -07:00