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

37 lines
1,005 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, postgresql, openssl, pam ? null, libmemcached ? null }:
2014-11-15 10:23:07 +01:00
stdenv.mkDerivation rec {
pname = "pgpool-II";
version = "4.0.6";
2014-11-15 10:23:07 +01: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 10:23:07 +01:00
};
patches = [ ./pgpool.patch ];
2015-04-08 21:10:31 +02:00
buildInputs = [ postgresql openssl pam libmemcached ];
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--with-openssl"
2021-01-15 08:07:56 +01:00
] ++ lib.optional (pam != null) "--with-pam"
++ lib.optional (libmemcached != null) "--with-memcached=${libmemcached}";
2015-04-08 21:10:31 +02:00
installFlags = [
"sysconfdir=\${out}/etc"
];
2014-11-15 10:23:07 +01:00
enableParallelBuilding = true;
meta = with 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
};
}