mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
68254e438c
This enables update scripts via buildPostgresqlExtension. Extensions must actively opt-out, if they don't support either the default configuration or the unstable configuration. To make the update script work, some extensions had to be changed to pull their code from GitHub instead. Those with PostgreSQL-style version tags (REL_X_Y) had to be changed to make src.rev the source of truth.
35 lines
897 B
Nix
35 lines
897 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
postgresql,
|
|
buildPostgresqlExtension,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildPostgresqlExtension rec {
|
|
pname = "wal2json";
|
|
version = "${builtins.replaceStrings [ "_" ] [ "." ] (
|
|
lib.strings.removePrefix "wal2json_" src.rev
|
|
)}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eulerto";
|
|
repo = "wal2json";
|
|
rev = "wal2json_2_6";
|
|
sha256 = "sha256-+QoACPCKiFfuT2lJfSUmgfzC5MXf75KpSoc2PzPxKyM=";
|
|
};
|
|
|
|
makeFlags = [ "USE_PGXS=1" ];
|
|
|
|
passthru.tests = nixosTests.postgresql.wal2json.passthru.override postgresql;
|
|
|
|
meta = with lib; {
|
|
description = "PostgreSQL JSON output plugin for changeset extraction";
|
|
homepage = "https://github.com/eulerto/wal2json";
|
|
changelog = "https://github.com/eulerto/wal2json/releases/tag/${src.rev}";
|
|
maintainers = with maintainers; [ euank ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|