nixpkgs/pkgs/servers/sql/pgpool/default.nix

37 lines
1 KiB
Nix
Raw Normal View History

2015-04-08 19:10:31 +00:00
{ stdenv, fetchurl, postgresql, openssl, pam ? null, libmemcached ? null }:
2014-11-15 09:23:07 +00:00
stdenv.mkDerivation rec {
name = "pgpool-II-3.4.14";
2014-11-15 09:23:07 +00:00
src = fetchurl {
2015-04-08 19:10:31 +00:00
name = "${name}.tar.gz";
2014-11-15 09:23:07 +00:00
url = "http://www.pgpool.net/download.php?f=${name}.tar.gz";
sha256 = "1paak83f4lv48xckmf2znryrvhmdz86w4v97mcw2gxm50hcl74sw";
2014-11-15 09:23:07 +00:00
};
patches = [ ./pgpool-II-3.4.14-glibc-2.26.patch ];
2015-04-08 19:10:31 +00: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 09:23:07 +00:00
enableParallelBuilding = true;
2014-11-15 09:23:07 +00:00
meta = with stdenv.lib; {
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
maintainers = with maintainers; [ wkennington ];
};
}