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
This commit is contained in:
NAHO
2025-10-04 19:02:37 +02:00
parent 0fe515d371
commit c8d4dabc43
390 changed files with 568 additions and 597 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ rec {
# example externalDeps': [ { name = "CRYPTO"; dep = pkgs.openssl; } ]
externalDeps' = lib.filter (dep: !lib.isDerivation dep) externalDeps;
externalDepsDirs = map (x: builtins.toString x) (lib.filter (lib.isDerivation) externalDeps);
externalDepsDirs = map (x: toString x) (lib.filter (lib.isDerivation) externalDeps);
generatedConfig = (
{