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 description = "PostgreSQL extension and service for automated failover and high-availability";
23 mainProgram = "pg_autoctl";
24 homepage = "https://github.com/citusdata/pg_auto_failover";
25 changelog = "https://github.com/citusdata/pg_auto_failover/blob/v${finalAttrs.version}/CHANGELOG.md";
26 maintainers = [ ];
27 platforms = postgresql.meta.platforms;
28 license = lib.licenses.postgresql;
29 };
30})