2020-07-23 00:17:48 +03:00
|
|
|
# Built-in Functions
|
|
|
|
|
2020-08-24 15:31:10 +03: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-23 00:17:48 +03: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-05-05 16:56:23 +03:00
|
|
|
<dl>
|
|
|
|
<dt><code>derivation <var>attrs</var></code>;
|
|
|
|
<code>builtins.derivation <var>attrs</var></code></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>
|