openresty: make postgres module optional

Enables users who don't need it to easily disable it. Defaults to on to
not regress any users.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss
2024-12-06 15:00:24 +01:00
parent d2f5c28d0d
commit cb29290646
+2 -1
View File
@@ -5,6 +5,7 @@
, perl
, postgresql
, nixosTests
, withPostgres ? true
, ...
}@args:
@@ -37,7 +38,7 @@ callPackage ../nginx/generic.nix args rec {
patchShebangs configure bundle/
'';
configureFlags = [ "--with-http_postgres_module" ];
configureFlags = lib.optional withPostgres [ "--with-http_postgres_module" ];
postInstall = ''
ln -s $out/luajit/bin/luajit-2.1.ROLLING $out/bin/luajit-openresty