nixpkgs/pkgs/servers/sql/pgbouncer/default.nix
Derek Kulinski 1c392dfcf0 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.
2019-08-15 03:20:42 +03:00

21 lines
582 B
Nix

{ stdenv, fetchurl, openssl, libevent, c-ares, pkg-config }:
stdenv.mkDerivation rec {
name = "pgbouncer-${version}";
version = "1.10.0";
src = fetchurl {
url = "https://pgbouncer.github.io/downloads/files/${version}/${name}.tar.gz";
sha256 = "1m8vsxyna5grs5p0vnxf3fxxnkk9aqjf3qmr2bbkpkhlzr11986q";
};
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.all;
};
}