forked from mirrors/nixpkgs
Pass lib to modules
Since mkOption, types, etc. are defined there, lib is really part of the interface
This commit is contained in:
parent
b2d0c27d0a
commit
2deb26bd4a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue