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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user