Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at github-to-sqlite-beautifulsoup4 28 lines 884 B view raw
1{ lib, stdenv, fetchurl, openssl, libevent, c-ares, pkg-config, nixosTests }: 2 3stdenv.mkDerivation rec { 4 pname = "pgbouncer"; 5 version = "1.20.0"; 6 7 src = fetchurl { 8 url = "https://www.pgbouncer.org/downloads/files/${version}/${pname}-${version}.tar.gz"; 9 hash = "sha256-5w1afLi3Hdfbq/01cdcaS2uZ8uhdjXGvHnNPbYZjXw4="; 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 description = "Lightweight connection pooler for PostgreSQL"; 23 changelog = "https://github.com/pgbouncer/pgbouncer/releases/tag/pgbouncer_${replaceStrings ["."] ["_"] version}"; 24 license = licenses.isc; 25 maintainers = with maintainers; [ _1000101 ]; 26 platforms = platforms.all; 27 }; 28}