Merge pull request #121071 from georgyo/psql-gssapi

postgresql: enable gssapi/kerberos support

authored by Mario Rodas and committed by GitHub b0813d32 92bff24d

+5 -1
+5 -1
pkgs/servers/sql/postgresql/default.nix
··· 8 8 9 9 # This is important to obtain a version of `libpq` that does not depend on systemd. 10 10 , enableSystemd ? (lib.versionAtLeast version "9.6" && !stdenv.isDarwin) 11 + , gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic, libkrb5 12 + 11 13 12 14 # for postgreql.pkgs 13 15 , this, self, newScope, buildEnv ··· 38 40 [ zlib readline openssl libxml2 ] 39 41 ++ lib.optionals icuEnabled [ icu ] 40 42 ++ lib.optionals enableSystemd [ systemd ] 43 + ++ lib.optionals gssSupport [ libkrb5 ] 41 44 ++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ]; 42 45 43 46 nativeBuildInputs = [ makeWrapper ] ++ lib.optionals icuEnabled [ pkg-config ]; ··· 62 65 "--enable-debug" 63 66 (lib.optionalString enableSystemd "--with-systemd") 64 67 (if stdenv.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid") 65 - ] ++ lib.optionals icuEnabled [ "--with-icu" ]; 68 + ] ++ lib.optionals icuEnabled [ "--with-icu" ] 69 + ++ lib.optionals gssSupport [ "--with-gssapi" ]; 66 70 67 71 patches = 68 72 [ (if atLeast "9.4" then ./patches/disable-resolve_symlinks-94.patch else ./patches/disable-resolve_symlinks.patch)