Merge pull request #214645 from marsam/add-pgagroal
pgagroal: init at 1.5.1
This commit is contained in:
commit
b73fa81cb4
27
pkgs/development/tools/database/pgagroal/default.nix
Normal file
27
pkgs/development/tools/database/pgagroal/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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)
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user