3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #162283 from Infinisil/functionTo.description

lib/types: Fix functionTo description
This commit is contained in:
Silvan Mosberger 2022-03-02 19:42:48 +01:00 committed by GitHub
commit 6bcfd61109
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;