No description
`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}'.
|
||
|---|---|---|
| corepkgs | ||
| doc | ||
| externals | ||
| scripts | ||
| src | ||
| testpkgs | ||
| AUTHORS | ||
| ChangeLog | ||
| configure.ac | ||
| COPYING | ||
| INSTALL | ||
| Makefile.am | ||
| NEWS | ||
| nix.spec.in | ||
| README | ||
| substitute.mk | ||
*** Nix *** For installation and usage instructions, please read the manual, which can be found in docs/manual/manual.html, and additionally at the Nix website at <http://www.cs.uu.nl/groups/ST/Trace/NixDeploymentSystem>.