depot/third_party/nixpkgs/pkgs/servers/sql/pgpool/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

44 lines
965 B
Nix

{ lib
, stdenv
, fetchurl
, postgresql
, openssl
, withPam ? stdenv.isLinux
, pam
}:
stdenv.mkDerivation rec {
pname = "pgpool-II";
version = "4.3.3";
src = fetchurl {
url = "https://www.pgpool.net/mediawiki/download.php?f=pgpool-II-${version}.tar.gz";
name = "pgpool-II-${version}.tar.gz";
sha256 = "sha256-bHNDS67lgThqlVX+WWKL9GeCD31b2+M0F2g5mgOCyXk=";
};
buildInputs = [
postgresql
openssl
] ++ lib.optional withPam pam;
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--with-openssl"
] ++ lib.optional withPam "--with-pam";
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;
maintainers = with maintainers; [ ];
};
}