1 { lib, stdenv, fetchFromGitHub, cjson, cmake, docutils, libev, openssl, systemd }:
3 stdenv.mkDerivation (finalAttrs: {
7 src = fetchFromGitHub {
10 rev = finalAttrs.version;
11 hash = "sha256-bgJvGJ35RdFopW88o+H1DLpG70anP197y6xrpRRrxUA=";
14 patches = [ ./do-not-search-libatomic.patch ];
16 nativeBuildInputs = [ cmake docutils ];
18 buildInputs = [ cjson libev openssl ]
19 ++ lib.optionals stdenv.isLinux [ systemd ];
22 description = "High-performance connection pool for PostgreSQL";
23 homepage = "https://agroal.github.io/pgagroal/";
24 changelog = "https://github.com/agroal/pgagroal/releases/tag/${finalAttrs.version}";
25 license = licenses.bsd3;
27 platforms = platforms.unix;