mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
lib/types: submodule fix description with freeformType
This commit is contained in:
parent
cf0760e7be
commit
717bb9db24
1 changed files with 8 additions and 1 deletions
|
|
@ -1247,7 +1247,14 @@ let
|
|||
let
|
||||
docsEval = base.extendModules { modules = [ noCheckForDocsModule ]; };
|
||||
in
|
||||
docsEval._module.freeformType.description or name;
|
||||
if docsEval._module.freeformType ? description then
|
||||
"open ${name} of ${
|
||||
optionDescriptionPhrase (
|
||||
class: class == "noun" || class == "composite"
|
||||
) docsEval._module.freeformType
|
||||
}"
|
||||
else
|
||||
name;
|
||||
inherit check;
|
||||
merge = {
|
||||
__functor =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue