Merge pull request #214645 from marsam/add-pgagroal

pgagroal: init at 1.5.1
This commit is contained in:
Nick Cao 2023-02-07 09:32:08 +08:00 committed by GitHub
commit b73fa81cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ lib, stdenv, fetchFromGitHub, cmake, docutils, libev, openssl, systemd }:
stdenv.mkDerivation rec {
pname = "pgagroal";
version = "1.5.1";
src = fetchFromGitHub {
owner = "agroal";
repo = "pgagroal";
rev = version;
hash = "sha256-d6icEYlk0qnzmoP/mvSmTw16YfIYWc2WbY7sKguX7Ug=";
};
patches = [ ./do-not-search-libatomic.patch ];
nativeBuildInputs = [ cmake docutils ];
buildInputs = [ libev openssl systemd ];
meta = with lib; {
description = "High-performance connection pool for PostgreSQL";
homepage = "https://agroal.github.io/pgagroal/";
license = licenses.bsd3;
maintainers = [ maintainers.marsam ];
platforms = platforms.linux;
};
}

View File

@ -0,0 +1,15 @@
--- i/CMakeLists.txt
+++ w/CMakeLists.txt
@@ -78,12 +78,6 @@
endif()
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
- find_package(Libatomic)
- if (LIBATOMIC_FOUND)
- message(STATUS "libatomic found")
- else ()
- message(FATAL_ERROR "libatomic needed")
- endif()
find_package(Systemd)
if (SYSTEMD_FOUND)

View File

@ -10795,6 +10795,8 @@ with pkgs;
pg_top = callPackage ../tools/misc/pg_top { };
pgagroal = callPackage ../development/tools/database/pgagroal { };
pgcenter = callPackage ../tools/misc/pgcenter { };
pgmetrics = callPackage ../tools/misc/pgmetrics { };