about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/pg/pgagroal/package.nix
blob: 8ba0803d96bc7d59a11e2301d509410dbe04cf43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchFromGitHub, cjson, cmake, docutils, libev, openssl, systemd }:

stdenv.mkDerivation (finalAttrs: {
  pname = "pgagroal";
  version = "1.6.0";

  src = fetchFromGitHub {
    owner = "agroal";
    repo = "pgagroal";
    rev = finalAttrs.version;
    hash = "sha256-bgJvGJ35RdFopW88o+H1DLpG70anP197y6xrpRRrxUA=";
  };

  patches = [ ./do-not-search-libatomic.patch ];

  nativeBuildInputs = [ cmake docutils ];

  buildInputs = [ cjson libev openssl ]
    ++ lib.optionals stdenv.isLinux [ systemd ];

  meta = with lib; {
    description = "High-performance connection pool for PostgreSQL";
    homepage = "https://agroal.github.io/pgagroal/";
    changelog = "https://github.com/agroal/pgagroal/releases/tag/${finalAttrs.version}";
    license = licenses.bsd3;
    maintainers = [ maintainers.marsam ];
    platforms = platforms.unix;
  };
})