108733a2a2
Those extensions don't support building with PostgreSQL 18, yet. To make sure the broken status is updated on the next upgrade, they all have version checks in the form of an evaluation warning, so that there has be explicit action regarding its PG18 compatibility.
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;
|
|
};
|
|
})
|