2015-04-08 21:10:31 +02:00
|
|
|
{ stdenv, fetchurl, postgresql, openssl, pam ? null, libmemcached ? null }:
|
2014-11-15 10:23:07 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-08 21:10:31 +02:00
|
|
|
name = "pgpool-II-3.4.2";
|
2014-11-15 10:23:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-04-08 21:10:31 +02:00
|
|
|
name = "${name}.tar.gz";
|
2014-11-15 10:23:07 +01:00
|
|
|
url = "http://www.pgpool.net/download.php?f=${name}.tar.gz";
|
2015-04-08 21:10:31 +02:00
|
|
|
sha256 = "0lf3fvwc2ib4md25a3hnv822nhy9ac06vg0ndw8q9bry66hzwcfh";
|
2014-11-15 10:23:07 +01:00
|
|
|
};
|
|
|
|
|
2015-04-08 21:10:31 +02: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 10:23:07 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://pgpool.net/mediawiki/index.php;
|
2015-04-28 10:54:58 +02:00
|
|
|
description = "A middleware that works between postgresql servers and postgresql clients";
|
2014-11-15 10:23:07 +01:00
|
|
|
license = licenses.free;
|
2015-04-05 04:43:54 +02:00
|
|
|
platforms = platforms.linux;
|
2014-11-15 10:23:07 +01:00
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|