Binding
Constructors
| Constructor | Fields | Description |
|---|---|---|
Inherit | scope: Maybe Expr, names: [VarName] | Inherit variables from scope |
NamedVar | attrPath: AttrPath, value: Expr | Named variable binding |
Description
Bindings are used in Let expressions and Set (attribute set) expressions. They associate names with values.
Pages
Related
Nix Library Access
syntax.mkInherit null ["x" "y"]
syntax.mkInherit (syntax.mkSym "pkgs") ["vim" "git"]
syntax.mkNamedVar [syntax.mkStaticKey "x"] (syntax.mkInt 1)