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
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
postgresql,
|
|
postgresqlBuildExtension,
|
|
}:
|
|
|
|
postgresqlBuildExtension (finalAttrs: {
|
|
pname = "pg_auto_failover";
|
|
version = "2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "citusdata";
|
|
repo = "pg_auto_failover";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-lsnVry+5n08kLOun8u0B7XFvI5ijTKJtFJ84fixMHe4=";
|
|
};
|
|
|
|
buildInputs = postgresql.buildInputs;
|
|
|
|
meta = {
|
|
# PostgreSQL 18 support issue upstream: https://github.com/hapostgres/pg_auto_failover/issues/1083
|
|
# Check after next package update.
|
|
broken =
|
|
lib.warnIf (finalAttrs.version != "2.2") "Is postgresql18Packages.pg_auto_failover still broken?"
|
|
(lib.versionAtLeast postgresql.version "18");
|
|
description = "PostgreSQL extension and service for automated failover and high-availability";
|
|
mainProgram = "pg_autoctl";
|
|
homepage = "https://github.com/citusdata/pg_auto_failover";
|
|
changelog = "https://github.com/citusdata/pg_auto_failover/blob/v${finalAttrs.version}/CHANGELOG.md";
|
|
maintainers = [ ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = lib.licenses.postgresql;
|
|
};
|
|
})
|