diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-09-04 17:19:55 +0200 |
---|---|---|
committer | Silvan Mosberger <contact@infinisil.com> | 2020-09-17 18:20:08 +0200 |
commit | 0f6231702fc1ccde0130bcbf297ff415d17b06d8 (patch) | |
tree | b616eaf1967fdd8093fd864fbd38f4190368d7b9 /lib/generators.nix | |
parent | f3bf0f173ec9b302c2613dfb6d76dc49b889f321 (diff) |
lib/generators.toPretty: Only quote attribute names if necessary
Diffstat (limited to 'lib/generators.nix')
-rw-r--r-- | lib/generators.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators.nix b/lib/generators.nix index abd237eb7d37..800ef5be4fcd 100644 --- a/lib/generators.nix +++ b/lib/generators.nix @@ -227,7 +227,7 @@ rec { else "{ " + libStr.concatStringsSep " " (libAttr.mapAttrsToList (name: value: - "${toPretty args name} = ${toPretty args value};") v) + "${libStr.escapeNixIdentifier name} = ${toPretty args value};") v) + " }" else if isFunction v then let fna = lib.functionArgs v; |