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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, postgresql
, openssl
2022-09-29 15:20:56 +00:00
, libxcrypt
, withPam ? stdenv.isLinux
, pam
}:
2014-11-15 09:23:07 +00:00
stdenv.mkDerivation rec {
pname = "pgpool-II";
2023-06-09 23:15:22 +00:00
version = "4.4.3";
2014-11-15 09:23:07 +00:00
src = fetchurl {
url = "https://www.pgpool.net/mediawiki/download.php?f=pgpool-II-${version}.tar.gz";
name = "pgpool-II-${version}.tar.gz";
2023-06-09 23:15:22 +00:00
sha256 = "sha256-RnRaqY9FTgl87LTaz1NvicN+0+xB8y8KhGk0Ip0OtzM=";
2014-11-15 09:23:07 +00:00
};
buildInputs = [
postgresql
openssl
2022-09-29 15:20:56 +00:00
libxcrypt
] ++ lib.optional withPam pam;
2015-04-08 19:10:31 +00:00
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--with-openssl"
] ++ lib.optional withPam "--with-pam";
2015-04-08 19:10:31 +00:00
installFlags = [
"sysconfdir=\${out}/etc"
];
2014-11-15 09:23:07 +00:00
patches = lib.optionals (stdenv.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 = "http://pgpool.net/mediawiki/index.php";
2015-04-28 08:54:58 +00:00
description = "A middleware that works between postgresql servers and postgresql clients";
2014-11-15 09:23:07 +00:00
license = licenses.free;
2022-08-21 04:20:00 +00:00
platforms = platforms.unix;
maintainers = with maintainers; [ ];
2014-11-15 09:23:07 +00:00
};
}