0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

lib: export option location in optionAttrSetToDocList

This commit is contained in:
Jan Malakhovski 2018-02-11 22:04:09 +00:00
parent ad78e52357
commit a3a8c1f54d

View file

@ -85,6 +85,7 @@ rec {
concatMap (opt:
let
docOption = rec {
loc = opt.loc;
name = showOption opt.loc;
description = opt.description or (throw "Option `${name}' has no description.");
declarations = filter (x: x != unknownModule) opt.declarations;