mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
* Change the check function to accept sub-modules with arguments in
option definitions. svn path=/nixpkgs/trunk/; revision=18252
This commit is contained in:
parent
4d0e24acd3
commit
8b47086b85
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user