summary refs log tree commit diff
path: root/pkgs/servers/http/openresty
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2020-04-25 17:02:23 +0300
committerIzorkin <izorkin@elven.pw>2020-05-04 16:36:38 +0300
commita19800fb48b52079c55d88c9f6137f58e8d97918 (patch)
treea6f8f402487602347e2e061e59208941310c7399 /pkgs/servers/http/openresty
parent4d988ff0d0fa772f0297b5227c343a62391cbe1c (diff)
downloadnixpkgs-a19800fb48b52079c55d88c9f6137f58e8d97918.tar
nixpkgs-a19800fb48b52079c55d88c9f6137f58e8d97918.tar.gz
nixpkgs-a19800fb48b52079c55d88c9f6137f58e8d97918.tar.bz2
nixpkgs-a19800fb48b52079c55d88c9f6137f58e8d97918.tar.lz
nixpkgs-a19800fb48b52079c55d88c9f6137f58e8d97918.tar.xz
nixpkgs-a19800fb48b52079c55d88c9f6137f58e8d97918.tar.zst
nixpkgs-a19800fb48b52079c55d88c9f6137f58e8d97918.zip
nginx: change logs path
Diffstat (limited to 'pkgs/servers/http/openresty')
-rw-r--r--pkgs/servers/http/openresty/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/servers/http/openresty/default.nix b/pkgs/servers/http/openresty/default.nix
index 0e87b971985..9c01cfb19e1 100644
--- a/pkgs/servers/http/openresty/default.nix
+++ b/pkgs/servers/http/openresty/default.nix
@@ -16,10 +16,11 @@ callPackage ../nginx/generic.nix args rec {
     sha256 = "1a1la7vszv1parsnhphydblz64ffhycazncn3ividnvqg2mg735n";
   };
 
-  fixPatch = patch:
-    runCommand "openresty-${patch.name}" { src = patch; } ''
+  fixPatch = patch: let name = patch.name or (builtins.baseNameOf patch); in
+    runCommand "openresty-${name}" { src = patch; } ''
       substitute $src $out \
-        --replace "src/" "bundle/nginx-${nginxVersion}/src/"
+        --replace "a/" "a/bundle/nginx-${nginxVersion}/" \
+        --replace "b/" "b/bundle/nginx-${nginxVersion}/"
     '';
 
   buildInputs = [ postgresql ];