1{
2 fetchFromGitHub,
3 lib,
4 nixosTests,
5 postgresql,
6 postgresqlBuildExtension,
7}:
8
9postgresqlBuildExtension (finalAttrs: {
10 pname = "wal2json";
11 version = "${builtins.replaceStrings [ "_" ] [ "." ] (
12 lib.strings.removePrefix "wal2json_" finalAttrs.src.rev
13 )}";
14
15 src = fetchFromGitHub {
16 owner = "eulerto";
17 repo = "wal2json";
18 tag = "wal2json_2_6";
19 hash = "sha256-+QoACPCKiFfuT2lJfSUmgfzC5MXf75KpSoc2PzPxKyM=";
20 };
21
22 makeFlags = [ "USE_PGXS=1" ];
23
24 passthru.tests = nixosTests.postgresql.wal2json.passthru.override postgresql;
25
26 meta = {
27 description = "PostgreSQL JSON output plugin for changeset extraction";
28 homepage = "https://github.com/eulerto/wal2json";
29 changelog = "https://github.com/eulerto/wal2json/releases/tag/${finalAttrs.src.rev}";
30 maintainers = with lib.maintainers; [ euank ];
31 platforms = postgresql.meta.platforms;
32 license = lib.licenses.bsd3;
33 };
34})