2020-07-22 21:17:48 +00:00
|
|
|
# Built-in Functions
|
|
|
|
|
2020-08-24 12:31:10 +00:00
|
|
|
This section lists the functions built into the Nix expression
|
|
|
|
evaluator. (The built-in function `derivation` is discussed above.)
|
|
|
|
Some built-ins, such as `derivation`, are always in scope of every Nix
|
|
|
|
expression; you can just access them right away. But to prevent
|
|
|
|
polluting the namespace too much, most built-ins are not in
|
2020-07-22 21:17:48 +00:00
|
|
|
scope. Instead, you can access them through the `builtins` built-in
|
|
|
|
value, which is a set that contains all built-in functions and values.
|
|
|
|
For instance, `derivation` is also available as `builtins.derivation`.
|
|
|
|
|
2021-04-23 12:30:42 +00:00
|
|
|
- `derivation` *attrs*; `builtins.derivation` *attrs*\
|
2020-07-22 21:17:48 +00:00
|
|
|
|
2020-08-24 12:31:10 +00:00
|
|
|
`derivation` is described in [its own section](derivations.md).
|
2020-07-22 21:17:48 +00:00
|
|
|
|