mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 09:36:20 +09:00
pkgs-lib.formats.xml: init (#342633)
This commit is contained in:
commit
4fbf6bf123
3 changed files with 102 additions and 0 deletions
|
@ -343,6 +343,21 @@ have a predefined type and string generator already declared under
|
|||
and returning a set with TOML-specific attributes `type` and
|
||||
`generate` as specified [below](#pkgs-formats-result).
|
||||
|
||||
`pkgs.formats.xml` { format ? "badgerfish", withHeader ? true}
|
||||
|
||||
: A function taking an attribute set with values
|
||||
and returning a set with XML-specific attributes `type` and
|
||||
`generate` as specified [below](#pkgs-formats-result).
|
||||
|
||||
`format`
|
||||
|
||||
: Input format. Because XML can not be translated one-to-one, we have to use intermediate formats. Possible values:
|
||||
- `"badgerfish"`: Uses [badgerfish](http://www.sklar.com/badgerfish/) conversion.
|
||||
|
||||
`withHeader`
|
||||
|
||||
: Outputs the xml with header.
|
||||
|
||||
`pkgs.formats.cdn` { }
|
||||
|
||||
: A function taking an empty attribute set (for future extensibility)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue