nixpkgs-suyu/pkgs/servers/sql/pgpool/default.nix
Orivej Desh 68a703b405 pgpool: 3.4.2 -> 3.4.14
Fixes the build with glibc 2.26.

Tracking issue: #31696
2017-11-16 02:17:45 +00:00

36 lines
1 KiB
Nix

{ stdenv, fetchurl, postgresql, openssl, pam ? null, libmemcached ? null }:
stdenv.mkDerivation rec {
name = "pgpool-II-3.4.14";
src = fetchurl {
name = "${name}.tar.gz";
url = "http://www.pgpool.net/download.php?f=${name}.tar.gz";
sha256 = "1paak83f4lv48xckmf2znryrvhmdz86w4v97mcw2gxm50hcl74sw";
};
patches = [ ./pgpool-II-3.4.14-glibc-2.26.patch ];
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"
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = http://pgpool.net/mediawiki/index.php;
description = "A middleware that works between postgresql servers and postgresql clients";
license = licenses.free;
platforms = platforms.linux;
maintainers = with maintainers; [ wkennington ];
};
}