aboutsummaryrefslogtreecommitdiff
path: root/overlays/databases/postgresql/default.nix
blob: 8dec7fff303989e28a4c1b321fe478b285f3500c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
self: super: rec {
  postgresql = postgresql_11;
  postgresql_11 = super.postgresql_11.overrideAttrs(old: {
    # datadir in /var/lib/postgresql is named after psqlSchema
    passthru = old.passthru // { psqlSchema = "11.0"; };
    configureFlags = old.configureFlags ++ [ "--with-pam" ];
    buildInputs = (old.buildInputs or []) ++ [ self.pam ];
    patches = old.patches ++ [
      ./postgresql_run_socket_path.patch
    ];
  });
}