start new dynamic apply function
This commit is contained in:
parent
3ed2f2e1a8
commit
76b5ac628d
3 changed files with 68 additions and 5 deletions
|
|
@ -4,12 +4,12 @@
|
|||
t = lib.types;
|
||||
in lib.fix (self: {
|
||||
/** Perform module-system type checking and resolving on a single option value. */
|
||||
typeCheck = loc: option: value:
|
||||
assert lib.isOptionType option;
|
||||
typeCheck = loc: optionType: value:
|
||||
assert lib.isOptionType optionType;
|
||||
assert lib.isList loc;
|
||||
assert lib.all lib.isString loc;
|
||||
let
|
||||
merged = lib.modules.mergeDefinitions loc option [ {
|
||||
merged = lib.modules.mergeDefinitions loc optionType [ {
|
||||
inherit value;
|
||||
file = "«inline»";
|
||||
} ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue