nixpkgs/pkgs/servers/sql/pgbouncer/default.nix
2020-05-06 23:09:50 -07:00

23 lines
646 B
Nix

{ stdenv, fetchurl, openssl, libevent, c-ares, pkg-config }:
stdenv.mkDerivation rec {
pname = "pgbouncer";
version = "1.13.0";
src = fetchurl {
url = "https://pgbouncer.github.io/downloads/files/${version}/${pname}-${version}.tar.gz";
sha256 = "0ccxr0hbj9h5pwsj2712mxif197j770qkfjv6na5aqh5bz4j3f2c";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libevent openssl c-ares ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = "https://pgbouncer.github.io";
description = "Lightweight connection pooler for PostgreSQL";
license = licenses.isc;
platforms = platforms.all;
};
}