Eisfunke's Lix Fork
Find a file
Shea Levy 20866a7031 Delay evaulation of with attrs until a variable lookup needs them
Evaluation of attribute sets is strict in the attribute names, which
means immediate evaluation of `with` attribute sets rules out some
potentially interesting use cases (e.g. where the attribute names of one
set depend in some way on another but we want to bring those names into
scope for some values in the second set).

The major example of this is overridable self-referential package sets
(e.g. all-packages.nix). With immediate `with` evaluation, the only
options for such sets are to either make them non-recursive and
explicitly use the name of the overridden set in non-overridden one
every time you want to reference another package, or make the set
recursive and use the `__overrides` hack. As shown in the test case that
comes with this commit, though, delayed `with` evaluation allows a nicer
third alternative.

Signed-off-by: Shea Levy <shea@shealevy.com>
2013-07-31 11:48:39 +02:00
corepkgs buildenv: remove special treatment of python files 2013-07-23 20:13:43 +02:00
doc Add hacking notes plus a script for running nix-shell 2013-07-19 16:51:31 +02:00
misc
perl
scripts
src Delay evaulation of with attrs until a variable lookup needs them 2013-07-31 11:48:39 +02:00
tests Delay evaulation of with attrs until a variable lookup needs them 2013-07-31 11:48:39 +02:00
.gitignore
AUTHORS
bootstrap.sh
build.nix
configure.ac
COPYING
dev-shell Add hacking notes plus a script for running nix-shell 2013-07-19 16:51:31 +02:00
INSTALL
Makefile.am
nix.spec.in
README
release.nix
substitute.mk
version

Nix is a purely functional package manager.  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://nixos.org/>.


Acknowledgments

This product includes software developed by the OpenSSL Project for
use in the OpenSSL Toolkit (http://www.OpenSSL.org/).