postgresqlPackages.pg_safeupdate: 1.5 -> 1.6

Release Notes:
https://github.com/eradman/pg-safeupdate/blob/1.6/NEWS

Building with PostgreSQL 19 beta 1 still fails, reported upstream at:
https://github.com/eradman/pg-safeupdate/issues/12
This commit is contained in:
Wolfgang Walther
2026-06-27 15:36:57 +02:00
parent 9b49cc5ca0
commit 7ed292fb37
@@ -5,55 +5,23 @@
postgresqlBuildExtension,
}:
let
sources = {
"14" = {
version = "1.5";
hash = "sha256-RRSpkWLFuif+6RCncnsb1NnjKnIIRY9KgebKkjCN5cs=";
};
"15" = {
version = "1.5";
hash = "sha256-RRSpkWLFuif+6RCncnsb1NnjKnIIRY9KgebKkjCN5cs=";
};
"16" = {
version = "1.5";
hash = "sha256-RRSpkWLFuif+6RCncnsb1NnjKnIIRY9KgebKkjCN5cs=";
};
"17" = {
version = "1.5";
hash = "sha256-RRSpkWLFuif+6RCncnsb1NnjKnIIRY9KgebKkjCN5cs=";
};
"18" = {
version = "1.5";
hash = "sha256-RRSpkWLFuif+6RCncnsb1NnjKnIIRY9KgebKkjCN5cs=";
};
};
source =
sources."${lib.versions.major postgresql.version}" or {
version = "";
hash = throw "pg_safeupdate: version specification for pg ${postgresql.version} missing.";
};
in
postgresqlBuildExtension {
postgresqlBuildExtension (finalAttrs: {
pname = "pg-safeupdate";
inherit (source) version;
version = "1.6";
src = fetchFromGitHub {
owner = "eradman";
repo = "pg-safeupdate";
tag = source.version;
inherit (source) hash;
tag = finalAttrs.version;
hash = "sha256-xky2tlb0EoKzyIYftVr7/2BYLdinhxHjXiVO3lR57MM=";
};
meta = {
broken = !builtins.elem (lib.versions.major postgresql.version) (builtins.attrNames sources);
description = "Simple extension to PostgreSQL that requires criteria for UPDATE and DELETE";
homepage = "https://github.com/eradman/pg-safeupdate";
changelog = "https://github.com/eradman/pg-safeupdate/raw/${source.version}/NEWS";
changelog = "https://github.com/eradman/pg-safeupdate/raw/${finalAttrs.version}/NEWS";
platforms = postgresql.meta.platforms;
maintainers = with lib.maintainers; [ wolfgangwalther ];
license = lib.licenses.postgresql;
};
}
})