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