depot/third_party/nixpkgs/pkgs/servers/sql/pgpool/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

46 lines
991 B
Nix

{ lib
, stdenv
, fetchurl
, postgresql
, openssl
, libxcrypt
, withPam ? stdenv.isLinux
, pam
}:
stdenv.mkDerivation rec {
pname = "pgpool-II";
version = "4.4.1";
src = fetchurl {
url = "https://www.pgpool.net/mediawiki/download.php?f=pgpool-II-${version}.tar.gz";
name = "pgpool-II-${version}.tar.gz";
sha256 = "sha256-Szebu6jheBKKHO5KW9GuEW3ts9phIbcowY8PVMiB8yg=";
};
buildInputs = [
postgresql
openssl
libxcrypt
] ++ 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; [ ];
};
}