mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
35 lines
970 B
Nix
35 lines
970 B
Nix
{ lib, stdenv, fetchurl, postgresql, openssl, pam ? null, libmemcached ? null }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pgpool-II";
|
|
version = "4.3.3";
|
|
|
|
src = fetchurl {
|
|
name = "${pname}-${version}.tar.gz";
|
|
url = "http://www.pgpool.net/download.php?f=${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-bHNDS67lgThqlVX+WWKL9GeCD31b2+M0F2g5mgOCyXk=";
|
|
};
|
|
|
|
buildInputs = [ postgresql openssl pam libmemcached ];
|
|
|
|
configureFlags = [
|
|
"--sysconfdir=/etc"
|
|
"--localstatedir=/var"
|
|
"--with-openssl"
|
|
] ++ lib.optional (pam != null) "--with-pam"
|
|
++ lib.optional (libmemcached != null) "--with-memcached=${libmemcached}";
|
|
|
|
installFlags = [
|
|
"sysconfdir=\${out}/etc"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "http://pgpool.net/mediawiki/index.php";
|
|
description = "A middleware that works between postgresql servers and postgresql clients";
|
|
license = licenses.free;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|