d897fc5501
easier. Instead of writing config.get ["foo" "bar"] it would be much cleaner to just write config.foo.bar only this doesn't handle the case where option foo.bar is not supplied in the configuration; in that case we need to take the default value from some set of option definitions (system/options.nix in NixOS). Following a suggestion from Martin, the function `combine' (need better name) takes a set of option definitions (which follow the attribute set structure of the options) and a set of options and fills in missing values in the latter with default values from the former. This only works with very recent versions of Nix (it needs Marc Weber's listToAttrs primop). svn path=/nixpkgs/trunk/; revision=9203 |
||
---|---|---|
.. | ||
applications | ||
build-support | ||
configs/etc | ||
data | ||
desktops | ||
development | ||
games | ||
lib | ||
misc | ||
os-specific/linux | ||
servers | ||
shells | ||
stdenv | ||
test | ||
tools | ||
top-level |