20866a7031
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> |
||
---|---|---|
.. | ||
lang | ||
add.sh | ||
binary-cache.sh | ||
binary-patching.nix | ||
binary-patching.sh | ||
build-hook.hook.sh | ||
build-hook.nix | ||
build-hook.sh | ||
check-refs.nix | ||
check-refs.sh | ||
common.sh.in | ||
config.nix.in | ||
dependencies.builder0.sh | ||
dependencies.builder1.sh | ||
dependencies.builder2.sh | ||
dependencies.nix | ||
dependencies.sh | ||
export-graph.nix | ||
export-graph.sh | ||
export.sh | ||
fallback.sh | ||
fetchurl.nix | ||
fetchurl.sh | ||
filter-source.nix | ||
filter-source.sh | ||
fixed.builder1.sh | ||
fixed.builder2.sh | ||
fixed.nix | ||
fixed.sh | ||
gc-concurrent.builder.sh | ||
gc-concurrent.nix | ||
gc-concurrent.sh | ||
gc-concurrent2.builder.sh | ||
gc-runtime.nix | ||
gc-runtime.sh | ||
gc.sh | ||
hash-check.nix | ||
hash.sh | ||
import-derivation.nix | ||
import-derivation.sh | ||
init.sh | ||
install-package.sh | ||
lang.sh | ||
logging.sh | ||
Makefile.am | ||
misc.sh | ||
multiple-outputs.nix | ||
multiple-outputs.sh | ||
negative-caching.nix | ||
negative-caching.sh | ||
nix-build.sh | ||
nix-channel.sh | ||
nix-copy-closure.nix | ||
nix-profile.sh | ||
nix-pull.sh | ||
nix-push.sh | ||
optimise-store.sh | ||
parallel.builder.sh | ||
parallel.nix | ||
parallel.sh | ||
referrers.sh | ||
remote-builds.nix | ||
remote-store.sh | ||
secure-drv-outputs.nix | ||
secure-drv-outputs.sh | ||
simple.builder.sh | ||
simple.nix | ||
simple.sh | ||
substituter.sh | ||
substituter2.sh | ||
substitutes.sh | ||
substitutes2.sh | ||
timeout.builder.sh | ||
timeout.nix | ||
timeout.sh | ||
user-envs.builder.sh | ||
user-envs.nix | ||
user-envs.sh | ||
verify.sh |