nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchurl,
5}:
6
7buildGoModule rec {
8 pname = "zabbix-agent2-plugin-postgresql";
9 version = "7.4.5";
10
11 src = fetchurl {
12 url = "https://cdn.zabbix.com/zabbix-agent2-plugins/sources/postgresql/zabbix-agent2-plugin-postgresql-${version}.tar.gz";
13 hash = "sha256-AeQfPA1o5XmRcY9L6p4ZwOTEaq2h+35QuIHBZhxV/2M=";
14 };
15
16 vendorHash = null;
17
18 meta = {
19 description = "Required tool for Zabbix agent integrated PostgreSQL monitoring";
20 mainProgram = "postgresql";
21 homepage = "https://www.zabbix.com/integrations/postgresql";
22 license =
23 if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus;
24 maintainers = with lib.maintainers; [ gador ];
25 platforms = lib.platforms.linux;
26 };
27}