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 ]; }); }