mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-29 08:30:21 +02:00
postgresql.nix: Add an option for overriding the PostgreSQL package
This commit is contained in:
parent
a025e848e0
commit
0e3f03106f
|
@ -20,7 +20,7 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
postgresql = postgresqlAndPlugins pkgs.postgresql;
|
postgresql = postgresqlAndPlugins cfg.package;
|
||||||
|
|
||||||
run = "su -s ${pkgs.stdenv.shell} postgres";
|
run = "su -s ${pkgs.stdenv.shell} postgres";
|
||||||
|
|
||||||
|
@ -54,6 +54,13 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
default = pkgs.postgresql;
|
||||||
|
description = ''
|
||||||
|
PostgreSQL package to use.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
default = "5432";
|
default = "5432";
|
||||||
description = ''
|
description = ''
|
||||||
|
|
Loading…
Reference in a new issue