027f7e1b7f
to do this we must replace derivations with attrsets in make-options-doc, since xml can represent derivations differently from attrset but json cannot. this also given asciidoc and mddoc the ability to handle derivation differently, which they previously didn't have.
7 lines
144 B
Nix
7 lines
144 B
Nix
{ file }:
|
|
|
|
builtins.attrValues
|
|
(builtins.mapAttrs
|
|
(name: def: def // { inherit name; })
|
|
(builtins.fromJSON (builtins.readFile file)))
|