Merge pull request #114853 from lourkeur/fix-string-escaping
nixos/kresd, nixos/dokuwiki, tests/fpm, build-bazel-package, libcutl: fix string escaping
This commit is contained in:
commit
61706fc470
@ -8,9 +8,9 @@ let
|
|||||||
# Convert systemd-style address specification to kresd config line(s).
|
# Convert systemd-style address specification to kresd config line(s).
|
||||||
# On Nix level we don't attempt to precisely validate the address specifications.
|
# On Nix level we don't attempt to precisely validate the address specifications.
|
||||||
mkListen = kind: addr: let
|
mkListen = kind: addr: let
|
||||||
al_v4 = builtins.match "([0-9.]\+):([0-9]\+)" addr;
|
al_v4 = builtins.match "([0-9.]+):([0-9]+)" addr;
|
||||||
al_v6 = builtins.match "\\[(.\+)]:([0-9]\+)" addr;
|
al_v6 = builtins.match "\\[(.+)]:([0-9]+)" addr;
|
||||||
al_portOnly = builtins.match "()([0-9]\+)" addr;
|
al_portOnly = builtins.match "()([0-9]+)" addr;
|
||||||
al = findFirst (a: a != null)
|
al = findFirst (a: a != null)
|
||||||
(throw "services.kresd.*: incorrect address specification '${addr}'")
|
(throw "services.kresd.*: incorrect address specification '${addr}'")
|
||||||
[ al_v4 al_v6 al_portOnly ];
|
[ al_v4 al_v6 al_portOnly ];
|
||||||
|
@ -329,7 +329,7 @@ in
|
|||||||
extraConfig = "internal;";
|
extraConfig = "internal;";
|
||||||
};
|
};
|
||||||
|
|
||||||
locations."~ ^/lib.*\.(js|css|gif|png|ico|jpg|jpeg)$" = {
|
locations."~ ^/lib.*\\.(js|css|gif|png|ico|jpg|jpeg)$" = {
|
||||||
extraConfig = "expires 365d;";
|
extraConfig = "expires 365d;";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -349,7 +349,7 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
locations."~ \.php$" = {
|
locations."~ \\.php$" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
try_files $uri $uri/ /doku.php;
|
try_files $uri $uri/ /doku.php;
|
||||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
|
@ -10,7 +10,7 @@ import ../make-test-python.nix ({pkgs, lib, php, ...}: {
|
|||||||
testdir = pkgs.writeTextDir "web/index.php" "<?php phpinfo();";
|
testdir = pkgs.writeTextDir "web/index.php" "<?php phpinfo();";
|
||||||
in {
|
in {
|
||||||
root = "${testdir}/web";
|
root = "${testdir}/web";
|
||||||
locations."~ \.php$".extraConfig = ''
|
locations."~ \\.php$".extraConfig = ''
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools.foobar.socket};
|
fastcgi_pass unix:${config.services.phpfpm.pools.foobar.socket};
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
|
@ -108,8 +108,8 @@ in stdenv.mkDerivation (fBuildAttrs // {
|
|||||||
rm -rf $bazelOut/external/{bazel_tools,\@bazel_tools.marker}
|
rm -rf $bazelOut/external/{bazel_tools,\@bazel_tools.marker}
|
||||||
${if removeRulesCC then "rm -rf $bazelOut/external/{rules_cc,\\@rules_cc.marker}" else ""}
|
${if removeRulesCC then "rm -rf $bazelOut/external/{rules_cc,\\@rules_cc.marker}" else ""}
|
||||||
rm -rf $bazelOut/external/{embedded_jdk,\@embedded_jdk.marker}
|
rm -rf $bazelOut/external/{embedded_jdk,\@embedded_jdk.marker}
|
||||||
${if removeLocalConfigCc then "rm -rf $bazelOut/external/{local_config_cc,\@local_config_cc.marker}" else ""}
|
${if removeLocalConfigCc then "rm -rf $bazelOut/external/{local_config_cc,\\@local_config_cc.marker}" else ""}
|
||||||
${if removeLocal then "rm -rf $bazelOut/external/{local_*,\@local_*.marker}" else ""}
|
${if removeLocal then "rm -rf $bazelOut/external/{local_*,\\@local_*.marker}" else ""}
|
||||||
|
|
||||||
# Clear markers
|
# Clear markers
|
||||||
find $bazelOut/external -name '@*\.marker' -exec sh -c 'echo > {}' \;
|
find $bazelOut/external -name '@*\.marker' -exec sh -c 'echo > {}' \;
|
||||||
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
|
|
||||||
majmin = builtins.head ( builtins.match "([[:digit:]]\.[[:digit:]]+)\.*" "${version}" );
|
majmin = builtins.head ( builtins.match "([[:digit:]]\\.[[:digit:]]+).*" "${version}" );
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://codesynthesis.com/download/${pname}/${majmin}/${pname}-${version}.tar.bz2";
|
url = "https://codesynthesis.com/download/${pname}/${majmin}/${pname}-${version}.tar.bz2";
|
||||||
sha256 = "070j2x02m4gm1fn7gnymrkbdxflgzxwl7m96aryv8wp3f3366l8j";
|
sha256 = "070j2x02m4gm1fn7gnymrkbdxflgzxwl7m96aryv8wp3f3366l8j";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user