1{ lib, stdenv, fetchFromGitHub, cmake, docutils, libev, openssl, systemd }:
2
3stdenv.mkDerivation rec {
4 pname = "pgagroal";
5 version = "1.5.1";
6
7 src = fetchFromGitHub {
8 owner = "agroal";
9 repo = "pgagroal";
10 rev = version;
11 hash = "sha256-d6icEYlk0qnzmoP/mvSmTw16YfIYWc2WbY7sKguX7Ug=";
12 };
13
14 patches = [ ./do-not-search-libatomic.patch ];
15
16 nativeBuildInputs = [ cmake docutils ];
17
18 buildInputs = [ libev openssl systemd ];
19
20 meta = with lib; {
21 description = "High-performance connection pool for PostgreSQL";
22 homepage = "https://agroal.github.io/pgagroal/";
23 license = licenses.bsd3;
24 maintainers = [ maintainers.marsam ];
25 platforms = platforms.linux;
26 };
27}