at 23.11-beta 29 lines 915 B view raw
1{ lib, stdenv, fetchurl, openssl, libevent, c-ares, pkg-config, nixosTests }: 2 3stdenv.mkDerivation rec { 4 pname = "pgbouncer"; 5 version = "1.21.0"; 6 7 src = fetchurl { 8 url = "https://www.pgbouncer.org/downloads/files/${version}/${pname}-${version}.tar.gz"; 9 hash = "sha256-fh3WIMjYWoSQr/JQYdUFXXrvnPPov+LZ53GbjuWRFOI="; 10 }; 11 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = [ libevent openssl c-ares ]; 14 enableParallelBuilding = true; 15 16 passthru.tests = { 17 pgbouncer = nixosTests.pgbouncer; 18 }; 19 20 meta = with lib; { 21 homepage = "https://www.pgbouncer.org/"; 22 mainProgram = "pgbouncer"; 23 description = "Lightweight connection pooler for PostgreSQL"; 24 changelog = "https://github.com/pgbouncer/pgbouncer/releases/tag/pgbouncer_${replaceStrings ["."] ["_"] version}"; 25 license = licenses.isc; 26 maintainers = with maintainers; [ _1000101 ]; 27 platforms = platforms.all; 28 }; 29}