mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, postgresql
|
|
, openssl
|
|
, libxcrypt
|
|
, withPam ? stdenv.hostPlatform.isLinux
|
|
, pam
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pgpool-II";
|
|
version = "4.5.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.pgpool.net/mediawiki/download.php?f=pgpool-II-${version}.tar.gz";
|
|
name = "pgpool-II-${version}.tar.gz";
|
|
hash = "sha256-0TkudM4oB/iuYohyyxq3kUJJkhGA3JnfQKHWAmR6EP0=";
|
|
};
|
|
|
|
buildInputs = [
|
|
postgresql
|
|
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 = [ ];
|
|
};
|
|
}
|