summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2021-01-31 21:19:19 +0100
committerGitHub <noreply@github.com>2021-01-31 21:19:19 +0100
commit919b1f5466ddeb8a3e450e6e785bba7b4f8ab723 (patch)
tree85c6c9bb1121f1db745dfea8286dec970f194b0d
parentf3f4cbfc0771941d9aa60dc7a0af20aa83130d4f (diff)
parente0215b317544b2e44391720c4f23eea64f56c377 (diff)
Merge pull request #111459 from helsinki-systems/types
lib/types: add description for functionTo
-rw-r--r--lib/types.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix
index 77245158d9f8..d0a8e96149d7 100644
--- a/lib/types.nix
+++ b/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;