Merge pull request #68946 from volth/escape

treewide: fix string escapes

Changed files
+27 -27
nixos
modules
programs
services
pkgs
applications
video
development
haskell-modules
tools
misc
ctags
os-specific
darwin
apple-source-releases
system_cmds
tools
typesetting
tex
texlive
+2 -2
nixos/modules/programs/less.nix
···
type = types.attrsOf types.str;
default = {};
example = {
-
h = "noaction 5\e(";
-
l = "noaction 5\e)";
+
h = "noaction 5\\e(";
+
l = "noaction 5\\e)";
};
description = "Defines new command keys.";
};
+1 -1
nixos/modules/services/mail/rspamd.nix
···
replaced with <literal>rspamd_proxy</literal>.
'';
apply = let
-
from = "services.rspamd.workers.\”${name}\".type";
+
from = "services.rspamd.workers.\"${name}\".type";
files = options.type.files;
warning = "The option `${from}` defined in ${showFiles files} has enum value `proxy` which has been renamed to `rspamd_proxy`";
in x: if x == "proxy" then traceWarning warning "rspamd_proxy" else x;
+1 -1
nixos/modules/services/monitoring/graphite.nix
···
description = "Any metrics received which match one of the experssions will be dropped.";
default = null;
type = types.nullOr types.str;
-
example = "^some\.noisy\.metric\.prefix\..*";
+
example = "^some\\.noisy\\.metric\\.prefix\\..*";
};
whitelist = mkOption {
+1 -1
nixos/modules/services/networking/prosody.nix
···
modules_enabled = {
-
${ lib.concatStringsSep "\n\ \ " (lib.mapAttrsToList
+
${ lib.concatStringsSep "\n " (lib.mapAttrsToList
(name: val: optionalString val "${toLua name};")
cfg.modules) }
${ lib.concatStringsSep "\n" (map (x: "${toLua x};") cfg.package.communityModules)}
+5 -5
nixos/modules/services/web-apps/matomo.nix
···
default = null;
example = {
serverAliases = [
-
"matomo.$\{config.networking.domain\}"
-
"stats.$\{config.networking.domain\}"
+
"matomo.\${config.networking.domain}"
+
"stats.\${config.networking.domain}"
];
enableACME = false;
};
···
Either this option or the webServerUser option is mandatory.
Set this to {} to just enable the virtualHost if you don't need any customization.
If enabled, then by default, the <option>serverName</option> is
-
<literal>${user}.$\{config.networking.hostName\}.$\{config.networking.domain\}</literal>,
+
<literal>''${user}.''${config.networking.hostName}.''${config.networking.domain}</literal>,
SSL is active, and certificates are acquired via ACME.
If this is set to null (the default), no nginx virtualHost will be configured.
'';
···
fastcgi_pass unix:${phpSocket};
'';
# Any other attempt to access any php files is forbidden
-
locations."~* ^.+\.php$".extraConfig = ''
+
locations."~* ^.+\\.php$".extraConfig = ''
return 403;
'';
# Disallow access to unneeded directories
···
return 403;
'';
# Disallow access to several helper files
-
locations."~* \.(?:bat|git|ini|sh|txt|tpl|xml|md)$".extraConfig = ''
+
locations."~* \\.(?:bat|git|ini|sh|txt|tpl|xml|md)$".extraConfig = ''
return 403;
'';
# No crawling of this site for bots that obey robots.txt - no useful information here.
+2 -2
nixos/modules/services/web-apps/restya-board.nix
···
locations."/".root = "${runDir}/client";
-
locations."~ \.php$" = {
+
locations."~ \\.php$" = {
tryFiles = "$uri =404";
extraConfig = ''
include ${pkgs.nginx}/conf/fastcgi_params;
···
'';
};
-
locations."~* \.(css|js|less|html|ttf|woff|jpg|jpeg|gif|png|bmp|ico)" = {
+
locations."~* \\.(css|js|less|html|ttf|woff|jpg|jpeg|gif|png|bmp|ico)" = {
root = "${runDir}/client";
extraConfig = ''
if (-f $request_filename) {
+1 -1
nixos/modules/services/web-apps/tt-rss.nix
···
index = "index.php";
};
-
locations."~ \.php$" = {
+
locations."~ \\.php$" = {
extraConfig = ''
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:${config.services.phpfpm.pools.${cfg.pool}.socket};
+1 -1
pkgs/applications/video/kino/default.nix
···
postInstall = "
rpath=`patchelf --print-rpath \$out/bin/kino`;
-
for i in $\buildInputs; do
+
for i in $buildInputs; do
echo adding \$i/lib
rpath=\$rpath\${rpath:+:}\$i/lib
done
+2 -2
pkgs/development/haskell-modules/hackage-packages.nix
···
version = "0.1.0.1";
sha256 = "0rwi5zwvqn18g7qyp9aw51w3yzkqbff9g7rcqdk1l871fvq8qhha";
libraryHaskellDepends = [ base ];
-
description = "Haskell operator `g ... f = \x1 .. xn -> g (f x1 .. xn)`.";
+
description = "Haskell operator `g ... f = \\x1 .. xn -> g (f x1 .. xn)`.";
license = stdenv.lib.licenses.bsd3;
}) {};
···
base containers exceptions free spiros split text transformers
executableHaskellDepends = [ base ];
-
description = "Automate keyboard\/mouse\/clipboard\/application interaction";
+
description = "Automate keyboard/mouse/clipboard/application interaction";
license = stdenv.lib.licenses.bsd3;
hydraPlatforms = stdenv.lib.platforms.none;
broken = true;
+7 -7
pkgs/development/tools/misc/ctags/wrapped.nix
···
# don't scan version control directories
defaultArgs = [
-
"--exclude=\.svn"
-
"--exclude=\.hg"
-
"--exclude=\.git"
-
"--exclude=\_darcs"
+
"--exclude=.svn"
+
"--exclude=.hg"
+
"--exclude=.git"
+
"--exclude=_darcs"
"--sort=yes"
];
···
asLang = [
"--langdef=ActionScript"
"--langmap=ActionScript:.as"
-
"--regex-ActionScript=/function[ \\t]+([A-Za-z0-9_]+)[ \\t]*\\(/\1/f,function,functions/"
-
"--regex-ActionScript=/function[ \\t]+(set|get)[ \\t]+([A-Za-z0-9_]+)[ \\t]*\\(/\2/p,property,properties/"
+
"--regex-ActionScript=/function[ \\t]+([A-Za-z0-9_]+)[ \\t]*\\(/\\1/f,function,functions/"
+
"--regex-ActionScript=/function[ \\t]+(set|get)[ \\t]+([A-Za-z0-9_]+)[ \\t]*\\(/\\2/p,property,properties/"
"--regex-ActionScript=/interface[ \\t]+[a-z0-9_.]*([A-Z][A-Za-z0-9_]+)/\\1/i,interface,interfaces/"
"--regex-ActionScript=/package[ \\t]+([^ \\t]*)/\\1/p/"
"--regex-ActionScript=/class[ \\t]+[a-z0-9_.]*([A-Z][A-Za-z0-9_]+)/\\1/c,class,classes/"
···
nixLang = [
"--langdef=NIX"
"--langmap=NIX:.nix"
-
"--regex-NIX=/\([^ \\t*]*\)[ \\t]*=/\\1/f/"
+
"--regex-NIX=/([^ \\t*]*)[ \\t]*=/\\1/f/"
];
rubyLang = [
+2 -2
pkgs/os-specific/darwin/apple-source-releases/system_cmds/default.nix
···
# + lib.optionalString hostPlatform.isAarch32 "-D__arm__";
NIX_CFLAGS_COMPILE = [ "-DDAEMON_UID=1"
"-DDAEMON_GID=1"
-
"-DDEFAULT_AT_QUEUE=\'a\'"
-
"-DDEFAULT_BATCH_QUEUE=\'b\'"
+
"-DDEFAULT_AT_QUEUE='a'"
+
"-DDEFAULT_BATCH_QUEUE='b'"
"-DPERM_PATH=\"/usr/lib/cron/\""
"-DOPEN_DIRECTORY"
"-DNO_DIRECT_RPC"
+2 -2
pkgs/tools/typesetting/tex/texlive/combine.nix
···
script =
writeText "hyphens.sed" (
# pick up the header
-
"1,/^\% from/p;"
+
"1,/^% from/p;"
# pick up all sections matching packages that we combine
-
+ lib.concatMapStrings (pname: "/^\% from ${pname}:$/,/^\%/p;\n") pnames
+
+ lib.concatMapStrings (pname: "/^% from ${pname}:$/,/^%/p;\n") pnames
);
in ''
(