Pass lib to modules

Since mkOption, types, etc. are defined there, lib is really part of the interface
This commit is contained in:
Shea Levy 2014-02-11 13:03:19 -05:00
parent b2d0c27d0a
commit 2deb26bd4a

View file

@ -12,7 +12,7 @@ rec {
and config: the nested set of all option values. */
evalModules = { modules, prefix ? [], args ? {}, check ? true }:
let
args' = args // result;
args' = args // { lib = import ./.; } // result;
closed = closeModules modules args';
# Note: the list of modules is reversed to maintain backward
# compatibility with the old module system. Not sure if this is