1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/sql/pgpool/default.nix

37 lines
1,019 B
Nix
Raw Normal View History

2015-04-08 20:10:31 +01:00
{ stdenv, fetchurl, postgresql, openssl, pam ? null, libmemcached ? null }:
2014-11-15 09:23:07 +00:00
stdenv.mkDerivation rec {
pname = "pgpool-II";
version = "4.0.6";
2014-11-15 09:23:07 +00:00
src = fetchurl {
name = "${pname}-${version}.tar.gz";
url = "http://www.pgpool.net/download.php?f=${pname}-${version}.tar.gz";
sha256 = "0blmbqczyrgzykby2z3xzmhzd8kgij9izxv50n5cjn5azf7dn8g5";
2014-11-15 09:23:07 +00:00
};
patches = [ ./pgpool.patch ];
2015-04-08 20:10:31 +01: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 09:54:58 +01: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 03:43:54 +01:00
platforms = platforms.linux;
2014-11-15 09:23:07 +00:00
};
}