at master 35 lines 1.1 kB view raw
1{ 2 fetchFromGitHub, 3 lib, 4 postgresql, 5 postgresqlBuildExtension, 6}: 7 8postgresqlBuildExtension (finalAttrs: { 9 pname = "pg_auto_failover"; 10 version = "2.2"; 11 12 src = fetchFromGitHub { 13 owner = "citusdata"; 14 repo = "pg_auto_failover"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-lsnVry+5n08kLOun8u0B7XFvI5ijTKJtFJ84fixMHe4="; 17 }; 18 19 buildInputs = postgresql.buildInputs; 20 21 meta = { 22 # PostgreSQL 18 support issue upstream: https://github.com/hapostgres/pg_auto_failover/issues/1083 23 # Check after next package update. 24 broken = 25 lib.warnIf (finalAttrs.version != "2.2") "Is postgresql18Packages.pg_auto_failover still broken?" 26 (lib.versionAtLeast postgresql.version "18"); 27 description = "PostgreSQL extension and service for automated failover and high-availability"; 28 mainProgram = "pg_autoctl"; 29 homepage = "https://github.com/citusdata/pg_auto_failover"; 30 changelog = "https://github.com/citusdata/pg_auto_failover/blob/v${finalAttrs.version}/CHANGELOG.md"; 31 maintainers = [ ]; 32 platforms = postgresql.meta.platforms; 33 license = lib.licenses.postgresql; 34 }; 35})