postgresqlPackages.wal2json: fix update script and version
This commit is contained in:
parent
65049d4556
commit
67a79abc45
@ -1,6 +1,7 @@
|
||||
{
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
nix-update-script,
|
||||
nixosTests,
|
||||
postgresql,
|
||||
postgresqlBuildExtension,
|
||||
@ -8,19 +9,20 @@
|
||||
|
||||
postgresqlBuildExtension (finalAttrs: {
|
||||
pname = "wal2json";
|
||||
version = "${builtins.replaceStrings [ "_" ] [ "." ] (
|
||||
lib.strings.removePrefix "wal2json_" finalAttrs.src.rev
|
||||
)}";
|
||||
version = "2.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eulerto";
|
||||
repo = "wal2json";
|
||||
tag = "wal2json_2_6";
|
||||
tag = "wal2json_${lib.replaceString "." "_" finalAttrs.version}";
|
||||
hash = "sha256-+QoACPCKiFfuT2lJfSUmgfzC5MXf75KpSoc2PzPxKyM=";
|
||||
};
|
||||
|
||||
makeFlags = [ "USE_PGXS=1" ];
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [ "--version-regex=^wal2json_(\\d+)_(\\d+)$" ];
|
||||
};
|
||||
passthru.tests = nixosTests.postgresql.wal2json.passthru.override postgresql;
|
||||
|
||||
meta = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user