Files
nixpkgs/pkgs/by-name/pg/pgpool/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
libpq,
openssl,
libxcrypt,
withPam ? stdenv.hostPlatform.isLinux,
pam,
}:
stdenv.mkDerivation rec {
pname = "pgpool-II";
version = "4.6.3";
src = fetchurl {
url = "https://www.pgpool.net/mediawiki/download.php?f=pgpool-II-${version}.tar.gz";
name = "pgpool-II-${version}.tar.gz";
hash = "sha256-RmiGaLKs5n2BYaMgJWJS2YaYvH2XiMxnJyadVyApnyw=";
};
buildInputs = [
libpq
openssl
libxcrypt
]
++ lib.optional withPam pam;
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--with-openssl"
]
++ lib.optional withPam "--with-pam";
installFlags = [
"sysconfdir=\${out}/etc"
];
patches = lib.optionals (stdenv.hostPlatform.isDarwin) [
# Build checks for strlcpy being available in the system, but doesn't
# actually exclude its own copy from being built
./darwin-strlcpy.patch
];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://www.pgpool.net/mediawiki/index.php/Main_Page";
description = "Middleware that works between PostgreSQL servers and PostgreSQL clients";
changelog = "https://www.pgpool.net/docs/latest/en/html/release-${
builtins.replaceStrings [ "." ] [ "-" ] version
}.html";
license = licenses.free;
platforms = platforms.unix;
maintainers = [ ];
};
}