diff options
Diffstat (limited to 'overlays/databases/postgresql/default.nix')
-rw-r--r-- | overlays/databases/postgresql/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/overlays/databases/postgresql/default.nix b/overlays/databases/postgresql/default.nix new file mode 100644 index 0000000..8dec7ff --- /dev/null +++ b/overlays/databases/postgresql/default.nix | |||
@@ -0,0 +1,12 @@ | |||
1 | self: super: rec { | ||
2 | postgresql = postgresql_11; | ||
3 | postgresql_11 = super.postgresql_11.overrideAttrs(old: { | ||
4 | # datadir in /var/lib/postgresql is named after psqlSchema | ||
5 | passthru = old.passthru // { psqlSchema = "11.0"; }; | ||
6 | configureFlags = old.configureFlags ++ [ "--with-pam" ]; | ||
7 | buildInputs = (old.buildInputs or []) ++ [ self.pam ]; | ||
8 | patches = old.patches ++ [ | ||
9 | ./postgresql_run_socket_path.patch | ||
10 | ]; | ||
11 | }); | ||
12 | } | ||