mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
lib: export option location in optionAttrSetToDocList
This commit is contained in:
parent
ad78e52357
commit
a3a8c1f54d
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ rec {
|
||||||
concatMap (opt:
|
concatMap (opt:
|
||||||
let
|
let
|
||||||
docOption = rec {
|
docOption = rec {
|
||||||
|
loc = opt.loc;
|
||||||
name = showOption opt.loc;
|
name = showOption opt.loc;
|
||||||
description = opt.description or (throw "Option `${name}' has no description.");
|
description = opt.description or (throw "Option `${name}' has no description.");
|
||||||
declarations = filter (x: x != unknownModule) opt.declarations;
|
declarations = filter (x: x != unknownModule) opt.declarations;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue