nixpkgs/lib/deprecated
NAHO 6177c4ad72
lib: 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 . lib --exec-batch sed --in-place --regexp-extended "
      s/\<builtins\.($(
        printf '%s\n' "${builtins[@]}" |
          paste --delimiter '|' --serial -
      ))\>/\1/g
    "

    nix fmt
2025-09-30 09:02:59 +02:00
..
misc.nix lib: remove optional builtins prefixes from prelude functions 2025-09-30 09:02:59 +02:00
README.md

lib/deprecated

Do not add any new functions to this directory.

This directory contains the lib.misc sublibrary, which - as a location - is deprecated. Furthermore, some of the functions inside are of dubious utility, and should perhaps be avoided, while some functions may still be needed.

This directory does not play a role in the deprecation process for library functions. They should be deprecated in place, by putting a lib.warn or lib.warnIf call around the function.