Skip to content

[Backport release-25.05] treewide: remove optional builtins prefixes from prelude functions#448591

Merged
wolfgangwalther merged 2 commits into
release-25.05from
backport-444432-to-release-25.05
Oct 13, 2025
Merged

[Backport release-25.05] treewide: remove optional builtins prefixes from prelude functions#448591
wolfgangwalther merged 2 commits into
release-25.05from
backport-444432-to-release-25.05

Conversation

@nixpkgs-ci

@nixpkgs-ci nixpkgs-ci Bot commented Oct 4, 2025

Copy link
Copy Markdown
Contributor

Bot-based backport to release-25.05, triggered by a label in #444432.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-committer, if you find that it is not acceptable, leave a comment.

(cherry picked from commit d17f0c1)
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 --exec-batch sed --in-place --regexp-extended "
      s/\<builtins\.($(
        printf '%s\n' "${builtins[@]}" |
          paste --delimiter '|' --serial -
      ))\>/\1/g
    "

    nix fmt

(cherry picked from commit dec908b)
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: haskell General-purpose, statically typed, purely functional programming language 6.topic: flakes The experimental Nix feature 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 4.workflow: backport This targets a stable branch 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Oct 4, 2025
@wolfgangwalther wolfgangwalther added this pull request to the merge queue Oct 13, 2025
Merged via the queue into release-25.05 with commit f9671a0 Oct 13, 2025
36 of 38 checks passed
@wolfgangwalther wolfgangwalther deleted the backport-444432-to-release-25.05 branch October 13, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 6.topic: flakes The experimental Nix feature 6.topic: haskell General-purpose, statically typed, purely functional programming language 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants