pgagroal: init at 1.5.1

This commit is contained in:
Mario Rodas 2023-02-03 04:20:00 +00:00
parent 19ad2a2b84
commit 9963187479
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

@ -10788,6 +10788,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 { };