mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
treewide: remove redundant quotes
This commit is contained in:
parent
4b929acf67
commit
7b8fb5c06c
387 changed files with 487 additions and 487 deletions
|
@ -253,7 +253,7 @@ let
|
|||
# TODO: proper quoting
|
||||
toNix = x:
|
||||
if (builtins.isString x) then "'${x}'"
|
||||
else if builtins.isAttrs x && builtins ? out then toNix "${x}" # a derivation
|
||||
else if builtins.isAttrs x && builtins ? out then toNix x # a derivation
|
||||
else if builtins.isAttrs x then "{${lib.concatStringsSep ", " (lib.mapAttrsToList (n: v: "${toNix n}: ${toNix v}") x)}}"
|
||||
else if builtins.isList x then "[${lib.concatMapStringsSep ", " toNix x}]"
|
||||
else throw "turning ${lib.generators.toPretty {} x} into a VimL thing not implemented yet";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue