lib/types: add description for functionTo

wip/yesman
Fritz Otlinghaus 3 years ago
parent 4015c5ca9c
commit e0215b3175
No known key found for this signature in database
GPG Key ID: 1E5F98946FB1444E
  1. 3
      lib/types.nix

@ -454,7 +454,8 @@ rec {
};
functionTo = elemType: mkOptionType {
name = "function that evaluates to a(n) ${elemType.name}";
name = "functionTo";
description = "function that evaluates to a(n) ${elemType.name}";
check = isFunction;
merge = loc: defs:
fnArgs: (mergeDefinitions (loc ++ [ "[function body]" ]) elemType (map (fn: { inherit (fn) file; value = fn.value fnArgs; }) defs)).mergedValue;

Loading…
Cancel
Save