diff options
author | Derek Kulinski <d@kulinski.us> | 2019-08-14 17:20:42 -0700 |
---|---|---|
committer | Danylo Hlynskyi <abcz2.uprola@gmail.com> | 2019-08-15 03:20:42 +0300 |
commit | 1c392dfcf0d005a726c4b0dd16b2196cea26170a (patch) | |
tree | 73206439353e433b7386787bc49862f8cef9d120 /pkgs/servers/sql | |
parent | 80396cf18a68139d386f5ab00db9f3449687e31c (diff) |
pgbouncer: use c-ares for name resolution (#66336)
According to pgbouncer README.md file c-ares is the prefered way to resolve names for pgbouncer 1.10+: https://github.com/pgbouncer/pgbouncer/blob/master/README.md#dns-lookup-support The previous method (evdns) did not support EDNS0 and SOA lookups.
Diffstat (limited to 'pkgs/servers/sql')
-rw-r--r-- | pkgs/servers/sql/pgbouncer/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/servers/sql/pgbouncer/default.nix b/pkgs/servers/sql/pgbouncer/default.nix index 3b4a0543e189c..dcaa8d5e1fad3 100644 --- a/pkgs/servers/sql/pgbouncer/default.nix +++ b/pkgs/servers/sql/pgbouncer/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, openssl, libevent }: +{ stdenv, fetchurl, openssl, libevent, c-ares, pkg-config }: stdenv.mkDerivation rec { name = "pgbouncer-${version}"; @@ -9,12 +9,12 @@ stdenv.mkDerivation rec { sha256 = "1m8vsxyna5grs5p0vnxf3fxxnkk9aqjf3qmr2bbkpkhlzr11986q"; }; - buildInputs = [ libevent openssl ]; + buildInputs = [ libevent openssl c-ares pkg-config ]; meta = with stdenv.lib; { homepage = https://pgbouncer.github.io; description = "Lightweight connection pooler for PostgreSQL"; license = licenses.isc; - platforms = platforms.linux; + platforms = platforms.all; }; } |