mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
expand on interpolated expressions
This commit is contained in:
parent
61720d0035
commit
a67cee965a
3 changed files with 116 additions and 20 deletions
|
@ -260,9 +260,7 @@ static RegisterPrimOp primop_import({
|
|||
.doc = R"(
|
||||
Load, parse and return the Nix expression in the file *path*.
|
||||
|
||||
The value *path* can be a path, a string, or an attribute set with an
|
||||
`__toString` attribute or a `outPath` attribute (as derivations or flake
|
||||
inputs typically have).
|
||||
The *path* argument must meet the same criteria as an [interpolated expression](@docroot@/language/string-interpolation.md#interpolated-expression).
|
||||
|
||||
If *path* is a directory, the file `default.nix` in that directory
|
||||
is loaded.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue