Fix NixOS evaluation. As I understand, configuration gets added to the list of modules as an attrSet (not as a file name). Just add a trivial check to passthrough such modules.
svn path=/nixpkgs/trunk/; revision=17116
This commit is contained in:
parent
da09a4e950
commit
b98b622ef0
@ -64,8 +64,10 @@ rec {
|
|||||||
|
|
||||||
moduleClosure = initModules: args:
|
moduleClosure = initModules: args:
|
||||||
let
|
let
|
||||||
moduleImport = m: lib.addErrorContext "Import module ${m}." (
|
moduleImport = m: lib.addErrorContext
|
||||||
(unifyModuleSyntax (applyIfFunction (import m) args)) // {
|
"Import module ${(if builtins.isAttrs m then "{...}" else m)}." (
|
||||||
|
(unifyModuleSyntax (applyIfFunction
|
||||||
|
(if builtins.isAttrs m then m else import m) args)) // {
|
||||||
# used by generic closure to avoid duplicated imports.
|
# used by generic closure to avoid duplicated imports.
|
||||||
key = m;
|
key = m;
|
||||||
paths = [ m ];
|
paths = [ m ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user