Revert "make-options-doc: fix string context issues"

This reverts commit 3c15d578d4.

See https://github.com/NixOS/nixpkgs/issues/83863
This commit is contained in:
Jan Tojnar 2020-04-02 00:53:54 +02:00
parent dbb4a47de0
commit 513cec9b81
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -86,7 +86,7 @@ let
optionsList = lib.sort optionLess optionsListDesc; optionsList = lib.sort optionLess optionsListDesc;
# Convert the list of options into an XML file. # Convert the list of options into an XML file.
optionsXML = pkgs.writeText "options.xml" (builtins.toXML optionsList); optionsXML = builtins.toFile "options.xml" (builtins.toXML optionsList);
optionsNix = builtins.listToAttrs (map (o: { name = o.name; value = removeAttrs o ["name" "visible" "internal"]; }) optionsList); optionsNix = builtins.listToAttrs (map (o: { name = o.name; value = removeAttrs o ["name" "visible" "internal"]; }) optionsList);