postgresql: enable gssapi/kerberos support
This commit is contained in:
parent
cf324a7f11
commit
81c3f7b8ff
1 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,8 @@ let
|
||||||
|
|
||||||
# This is important to obtain a version of `libpq` that does not depend on systemd.
|
# This is important to obtain a version of `libpq` that does not depend on systemd.
|
||||||
, enableSystemd ? (lib.versionAtLeast version "9.6" && !stdenv.isDarwin)
|
, enableSystemd ? (lib.versionAtLeast version "9.6" && !stdenv.isDarwin)
|
||||||
|
, gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic, libkrb5
|
||||||
|
|
||||||
|
|
||||||
# for postgreql.pkgs
|
# for postgreql.pkgs
|
||||||
, this, self, newScope, buildEnv
|
, this, self, newScope, buildEnv
|
||||||
|
@ -38,6 +40,7 @@ let
|
||||||
[ zlib readline openssl libxml2 ]
|
[ zlib readline openssl libxml2 ]
|
||||||
++ lib.optionals icuEnabled [ icu ]
|
++ lib.optionals icuEnabled [ icu ]
|
||||||
++ lib.optionals enableSystemd [ systemd ]
|
++ lib.optionals enableSystemd [ systemd ]
|
||||||
|
++ lib.optionals gssSupport [ libkrb5 ]
|
||||||
++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ];
|
++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ] ++ lib.optionals icuEnabled [ pkg-config ];
|
nativeBuildInputs = [ makeWrapper ] ++ lib.optionals icuEnabled [ pkg-config ];
|
||||||
|
@ -62,7 +65,8 @@ let
|
||||||
"--enable-debug"
|
"--enable-debug"
|
||||||
(lib.optionalString enableSystemd "--with-systemd")
|
(lib.optionalString enableSystemd "--with-systemd")
|
||||||
(if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid")
|
(if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid")
|
||||||
] ++ lib.optionals icuEnabled [ "--with-icu" ];
|
] ++ lib.optionals icuEnabled [ "--with-icu" ]
|
||||||
|
++ lib.optionals gssSupport [ "--with-gssapi" ];
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
[ (if atLeast "9.4" then ./patches/disable-resolve_symlinks-94.patch else ./patches/disable-resolve_symlinks.patch)
|
[ (if atLeast "9.4" then ./patches/disable-resolve_symlinks-94.patch else ./patches/disable-resolve_symlinks.patch)
|
||||||
|
|
Loading…
Reference in a new issue