* Change the check function to accept sub-modules with arguments in

option definitions.

svn path=/nixpkgs/trunk/; revision=18252
This commit is contained in:
Nicolas Pierron 2009-11-07 12:15:39 +00:00
parent 4d0e24acd3
commit 8b47086b85

View File

@ -135,7 +135,7 @@ rec {
name = "option set";
# merge is done in "options.nix > addOptionMakeUp > handleOptionSets"
merge = lib.id;
check = x: lib.traceValIfNot builtins.isAttrs x;
check = x: isAttrs x || builtins.isFunction x;
hasOptions = true;
delayOnGlobalEval = true;
};