1c9c0a5a46
`inherit' variables from the surrounding lexical scope. E.g., {stdenv, libfoo}: derivation { builder = ./bla; inherit stdenv libfoo; xyzzy = 1; } is equivalent to {stdenv, libfoo}: derivation { builder = ./bla; stdenv = stdenv; libfoo = libfoo; xyzzy = 1; } Note that for mutually recursive attribute set definitions (`rec {...}'), this also works, that is, `rec {inherit x;}' is equivalent to `let {fresh = x; body = rec {x = fresh;};}', *not* `rec {x = x}'. |
||
---|---|---|
.. | ||
eval.cc | ||
eval.hh | ||
lexer.l | ||
Makefile.am | ||
nixexpr.cc | ||
nixexpr.hh | ||
parser.cc | ||
parser.hh | ||
parser.y | ||
primops.cc | ||
primops.hh |