2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, postgresql, openssl, pam ? null, libmemcached ? null }:
|
2014-11-15 09:23:07 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-07 11:15:10 +00:00
|
|
|
pname = "pgpool-II";
|
2022-08-21 00:01:27 +00:00
|
|
|
version = "4.3.3";
|
2014-11-15 09:23:07 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
name = "${pname}-${version}.tar.gz";
|
|
|
|
url = "http://www.pgpool.net/download.php?f=${pname}-${version}.tar.gz";
|
2022-08-21 00:01:27 +00:00
|
|
|
sha256 = "sha256-bHNDS67lgThqlVX+WWKL9GeCD31b2+M0F2g5mgOCyXk=";
|
2014-11-15 09:23:07 +00:00
|
|
|
};
|
|
|
|
|
2015-04-08 19:10:31 +00:00
|
|
|
buildInputs = [ postgresql openssl pam libmemcached ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--with-openssl"
|
2021-01-15 07:07:56 +00:00
|
|
|
] ++ lib.optional (pam != null) "--with-pam"
|
|
|
|
++ lib.optional (libmemcached != null) "--with-memcached=${libmemcached}";
|
2015-04-08 19:10:31 +00:00
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
];
|
2014-11-15 09:23:07 +00:00
|
|
|
|
2017-11-16 02:17:45 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://pgpool.net/mediawiki/index.php";
|
2015-04-28 08:54:58 +00:00
|
|
|
description = "A middleware that works between postgresql servers and postgresql clients";
|
2014-11-15 09:23:07 +00:00
|
|
|
license = licenses.free;
|
2015-04-05 02:43:54 +00:00
|
|
|
platforms = platforms.linux;
|
2014-11-15 09:23:07 +00:00
|
|
|
};
|
|
|
|
}
|