nginx: change logs path

This commit is contained in:
Izorkin
2020-05-04 16:36:38 +03:00
parent 4d988ff0d0
commit a19800fb48
3 changed files with 57 additions and 19 deletions
+4 -3
View File
@@ -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 ];