From 2d6926b64b433e2fdf3e1d33b493d14c53f6a602 Mon Sep 17 00:00:00 2001
From: kvtb <76634406+kvtb@users.noreply.github.com>
Date: Thu, 31 Dec 2020 23:50:51 +0000
Subject: [PATCH] fpm.nix: fix string escaping

\. has no effect in single quoted strings
---
 nixos/tests/php/fpm.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nixos/tests/php/fpm.nix b/nixos/tests/php/fpm.nix
index 9ad515ebdde0..ffca46541e25 100644
--- a/nixos/tests/php/fpm.nix
+++ b/nixos/tests/php/fpm.nix
@@ -10,7 +10,7 @@ import ../make-test-python.nix ({pkgs, lib, ...}: {
         testdir = pkgs.writeTextDir "web/index.php" "<?php phpinfo();";
       in {
         root = "${testdir}/web";
-        locations."~ \.php$".extraConfig = ''
+        locations."~ \\.php$".extraConfig = ''
           fastcgi_pass unix:${config.services.phpfpm.pools.foobar.socket};
           fastcgi_index index.php;
           include ${pkgs.nginx}/conf/fastcgi_params;