Format nix files with nixfmt-tree
This commit is contained in:
parent
09d0c55e12
commit
700189112f
7 changed files with 583 additions and 522 deletions
|
|
@ -5,8 +5,10 @@ pkgs: rec {
|
|||
|
||||
noescape = value: { _noescape = value; };
|
||||
|
||||
escape = rawOrStr:
|
||||
if builtins.typeOf rawOrStr == "set" && rawOrStr ? _noescape
|
||||
then rawOrStr._noescape
|
||||
else pkgs.lib.strings.escapeShellArg rawOrStr;
|
||||
escape =
|
||||
rawOrStr:
|
||||
if builtins.typeOf rawOrStr == "set" && rawOrStr ? _noescape then
|
||||
rawOrStr._noescape
|
||||
else
|
||||
pkgs.lib.strings.escapeShellArg rawOrStr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue