mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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
This commit is contained in:
parent
9b2c4d6e32
commit
6177c4ad72
18 changed files with 36 additions and 36 deletions
|
|
@ -1373,7 +1373,7 @@ let
|
|||
if builtins.isString v then
|
||||
''"${v}"''
|
||||
else if builtins.isInt v then
|
||||
builtins.toString v
|
||||
toString v
|
||||
else if builtins.isBool v then
|
||||
boolToString v
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue