mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 05:20:00 +00:00
zabbix-agent2-plugin-postgresql: 7.4.13 -> 7.4.14, use finalAttrs (#564328)
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "zabbix-agent2-plugin-postgresql";
|
||||
version = "7.4.13";
|
||||
version = "7.4.14";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://cdn.zabbix.com/zabbix-agent2-plugins/sources/postgresql/zabbix-agent2-plugin-postgresql-${version}.tar.gz";
|
||||
hash = "sha256-GZIyuSjfDTOM5FP0Yz+MBu74L742PDiVtjltQMmY5uQ=";
|
||||
url = "https://cdn.zabbix.com/zabbix-agent2-plugins/sources/postgresql/zabbix-agent2-plugin-postgresql-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-H+WwJ9RrITeWKErMW+vcEG/Z2rAjbznVg/dK3ZM7j0I=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
@@ -20,8 +20,11 @@ buildGoModule rec {
|
||||
mainProgram = "postgresql";
|
||||
homepage = "https://www.zabbix.com/integrations/postgresql";
|
||||
license =
|
||||
if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus;
|
||||
if (lib.versions.major finalAttrs.version >= "7") then
|
||||
lib.licenses.agpl3Only
|
||||
else
|
||||
lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ gador ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user