postgresql.nix: Add an option for overriding the PostgreSQL package

This commit is contained in:
Eelco Dolstra 2012-08-15 17:01:19 -04:00
parent a025e848e0
commit 0e3f03106f

View file

@ -20,7 +20,7 @@ let
'';
};
postgresql = postgresqlAndPlugins pkgs.postgresql;
postgresql = postgresqlAndPlugins cfg.package;
run = "su -s ${pkgs.stdenv.shell} postgres";
@ -54,6 +54,13 @@ in
'';
};
package = mkOption {
default = pkgs.postgresql;
description = ''
PostgreSQL package to use.
'';
};
port = mkOption {
default = "5432";
description = ''