2024-07-07 22:57:23 +03:00
|
|
|
# Built-ins
|
2020-07-23 00:17:48 +03:00
|
|
|
|
2024-07-07 22:57:23 +03:00
|
|
|
This section lists the values and functions built into the Nix language evaluator.
|
|
|
|
All built-ins are available through the global [`builtins`](#builtins-builtins) constant.
|
2023-05-11 21:06:41 +03:00
|
|
|
|
2024-07-07 22:57:23 +03:00
|
|
|
Some built-ins are also exposed directly in the global scope:
|
|
|
|
|
|
|
|
<!-- TODO(@rhendric, #10970): this list is incomplete -->
|
2023-05-11 21:06:41 +03:00
|
|
|
|
|
|
|
- [`derivation`](#builtins-derivation)
|
|
|
|
- [`import`](#builtins-import)
|
|
|
|
- [`abort`](#builtins-abort)
|
|
|
|
- [`throw`](#builtins-throw)
|
2020-07-23 00:17:48 +03:00
|
|
|
|
2021-05-05 16:56:23 +03:00
|
|
|
<dl>
|
2023-05-11 21:06:41 +03:00
|
|
|
<dt id="builtins-derivation"><a href="#builtins-derivation"><code>derivation <var>attrs</var></code></a></dt>
|
2021-11-14 05:28:20 +02:00
|
|
|
<dd><p><var>derivation</var> is described in
|
2021-05-05 16:56:23 +03:00
|
|
|
<a href="derivations.md">its own section</a>.</p></dd>
|