diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-23 16:33:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-23 16:33:58 +0200 |
commit | dfe1fdf9e84b74df580b8baaa29ed88d9da46133 (patch) | |
tree | 8ac5bf090eb2157a48895ec20804e3f62e71b467 | |
parent | 629b9b0049363e091b76b7f60a8357d9f94733cc (diff) | |
parent | f107a270026596e525bdf8df0e2d331783ec4a10 (diff) |
Merge pull request #3159 from earksiinni/docs-import-brackets
Document import <path> syntax
-rw-r--r-- | doc/manual/expressions/builtins.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml index 465fa1e0b..f39b393bf 100644 --- a/doc/manual/expressions/builtins.xml +++ b/doc/manual/expressions/builtins.xml @@ -746,6 +746,11 @@ builtins.genList (x: x * x) 5 separate file, and use it from Nix expressions in other files.</para> + <note><para>Unlike some languages, <function>import</function> is a regular + function in Nix. Paths using the angle bracket syntax (e.g., <function> + import</function> <replaceable><foo></replaceable>) are normal path + values (see <xref linkend='ssec-values' />).</para></note> + <para>A Nix expression loaded by <function>import</function> must not contain any <emphasis>free variables</emphasis> (identifiers that are not defined in the Nix expression itself and are not |