mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
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)))
|