2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, postgresql, openssl, pam ? null, libmemcached ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgpool-II";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "4.3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "${pname}-${version}.tar.gz";
|
|
|
|
url = "http://www.pgpool.net/download.php?f=${pname}-${version}.tar.gz";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "02jg0c6k259i0r927dng9h0y58q965swshg2c9mzqhazcdiga5ap";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ postgresql openssl pam libmemcached ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-openssl"
|
2021-01-15 22:18:51 +00:00
|
|
|
] ++ lib.optional (pam != null) "--with-pam"
|
|
|
|
++ lib.optional (libmemcached != null) "--with-memcached=${libmemcached}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://pgpool.net/mediawiki/index.php";
|
|
|
|
description = "A middleware that works between postgresql servers and postgresql clients";
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|