3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/sql/pgpool/default.nix
R. RyanTM 13d0171516 pgpool: 4.0.5 -> 4.0.6 (#67020)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/pgpool-ii/versions
2019-08-20 13:56:19 +03:00

38 lines
1 KiB
Nix

{ stdenv, fetchurl, postgresql, openssl, pam ? null, libmemcached ? null }:
stdenv.mkDerivation rec {
pname = "pgpool-II";
version = "4.0.6";
name = "${pname}-${version}";
src = fetchurl {
name = "${name}.tar.gz";
url = "http://www.pgpool.net/download.php?f=${name}.tar.gz";
sha256 = "0blmbqczyrgzykby2z3xzmhzd8kgij9izxv50n5cjn5azf7dn8g5";
};
patches = [ ./pgpool.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;
};
}