diff options
author | Fritz Otlinghaus <fritz@otlinghaus.it> | 2021-01-31 13:28:23 +0100 |
---|---|---|
committer | Fritz Otlinghaus <fritz@otlinghaus.it> | 2021-01-31 15:59:13 +0100 |
commit | e0215b317544b2e44391720c4f23eea64f56c377 (patch) | |
tree | 202c97f599dd71c3f54d28832e8089b8bb24cf52 | |
parent | 4015c5ca9c6ec7d4aa765c97b4413b478daa278b (diff) | |
download | nixpkgs-e0215b317544b2e44391720c4f23eea64f56c377.tar nixpkgs-e0215b317544b2e44391720c4f23eea64f56c377.tar.gz nixpkgs-e0215b317544b2e44391720c4f23eea64f56c377.tar.bz2 nixpkgs-e0215b317544b2e44391720c4f23eea64f56c377.tar.lz nixpkgs-e0215b317544b2e44391720c4f23eea64f56c377.tar.xz nixpkgs-e0215b317544b2e44391720c4f23eea64f56c377.tar.zst nixpkgs-e0215b317544b2e44391720c4f23eea64f56c377.zip |
lib/types: add description for functionTo
-rw-r--r-- | lib/types.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix index 77245158d9f..d0a8e96149d 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; |