nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cjson,
6 cmake,
7 docutils,
8 libev,
9 openssl,
10 systemd,
11}:
12
13stdenv.mkDerivation (finalAttrs: {
14 pname = "pgagroal";
15 version = "1.6.0";
16
17 src = fetchFromGitHub {
18 owner = "agroal";
19 repo = "pgagroal";
20 rev = finalAttrs.version;
21 hash = "sha256-bgJvGJ35RdFopW88o+H1DLpG70anP197y6xrpRRrxUA=";
22 };
23
24 patches = [ ./do-not-search-libatomic.patch ];
25
26 nativeBuildInputs = [
27 cmake
28 docutils
29 ];
30
31 buildInputs = [
32 cjson
33 libev
34 openssl
35 ]
36 ++ lib.optionals stdenv.hostPlatform.isLinux [ systemd ];
37
38 meta = {
39 description = "High-performance connection pool for PostgreSQL";
40 homepage = "https://agroal.github.io/pgagroal/";
41 changelog = "https://github.com/agroal/pgagroal/releases/tag/${finalAttrs.version}";
42 license = lib.licenses.bsd3;
43 maintainers = [ ];
44 platforms = lib.platforms.unix;
45 };
46})