mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 14:11:21 +00:00
Merge pull request #162283 from Infinisil/functionTo.description
lib/types: Fix functionTo description
This commit is contained in:
commit
6bcfd61109
@ -514,7 +514,7 @@ rec {
|
||||
|
||||
functionTo = elemType: mkOptionType {
|
||||
name = "functionTo";
|
||||
description = "function that evaluates to a(n) ${elemType.name}";
|
||||
description = "function that evaluates to a(n) ${elemType.description}";
|
||||
check = isFunction;
|
||||
merge = loc: defs:
|
||||
fnArgs: (mergeDefinitions (loc ++ [ "[function body]" ]) elemType (map (fn: { inherit (fn) file; value = fn.value fnArgs; }) defs)).mergedValue;
|
||||
|
Loading…
Reference in New Issue
Block a user