depot/pkgs/by-name/pg/pgagroal/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

29 lines
856 B
Nix

{ 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.hostPlatform.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 = [ ];
platforms = platforms.unix;
};
})