{ lib, buildGoModule, fetchurl, }: buildGoModule rec { pname = "zabbix-agent2-plugin-postgresql"; version = "7.0.4"; src = fetchurl { url = "https://cdn.zabbix.com/zabbix-agent2-plugins/sources/postgresql/zabbix-agent2-plugin-postgresql-${version}.tar.gz"; hash = "sha256-BgCdy+0VVe2+NTwZII3ASaxGGAT7zGiQUppI9whJtQ8="; }; vendorHash = null; meta = { description = "Required tool for Zabbix agent integrated PostgreSQL monitoring"; mainProgram = "postgresql"; homepage = "https://www.zabbix.com/integrations/postgresql"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ gador ]; platforms = lib.platforms.linux; }; }