Loading pkgs/servers/monitoring/zabbix/agent.nix +19 −5 Original line number Diff line number Diff line { lib, stdenv, fetchurl, pkg-config, libiconv, openssl, pcre }: { lib, stdenv, fetchurl, pkg-config, libiconv, openssl, pcre, }: import ./versions.nix ({ version, hash, ... }: import ./versions.nix ( { version, hash, ... }: stdenv.mkDerivation { pname = "zabbix-agent"; inherit version; Loading Loading @@ -36,8 +45,13 @@ import ./versions.nix ({ version, hash, ... }: meta = { description = "Enterprise-class open source distributed monitoring solution (client-side agent)"; homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut psyanticy ]; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut psyanticy ]; platforms = lib.platforms.unix; }; }) } ) pkgs/servers/monitoring/zabbix/agent2.nix +32 −6 Original line number Diff line number Diff line { lib, buildGoModule, fetchurl, autoreconfHook, pkg-config, libiconv, openssl, pcre, zlib }: { lib, buildGoModule, fetchurl, autoreconfHook, pkg-config, libiconv, openssl, pcre, zlib, }: import ./versions.nix ({ version, hash, vendorHash ? throw "unsupported version ${version} for zabbix-agent2", ... }: import ./versions.nix ( { version, hash, vendorHash ? throw "unsupported version ${version} for zabbix-agent2", ... }: buildGoModule { pname = "zabbix-agent2"; inherit version; Loading @@ -14,8 +30,16 @@ import ./versions.nix ({ version, hash, vendorHash ? throw "unsupported version inherit vendorHash; nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ libiconv openssl pcre zlib ]; nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ libiconv openssl pcre zlib ]; inherit (buildGoModule.go) GOOS GOARCH; Loading Loading @@ -59,8 +83,10 @@ import ./versions.nix ({ version, hash, vendorHash ? throw "unsupported version meta = { description = "Enterprise-class open source distributed monitoring solution (client-side agent)"; homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ aanderse ]; platforms = lib.platforms.unix; }; }) } ) pkgs/servers/monitoring/zabbix/proxy.nix +61 −37 Original line number Diff line number Diff line { lib, stdenv, fetchurl, pkg-config, libevent, libiconv, openssl, pcre, zlib , odbcSupport ? true, unixODBC , snmpSupport ? stdenv.buildPlatform == stdenv.hostPlatform, net-snmp , sshSupport ? true, libssh2 , sqliteSupport ? false, sqlite , mysqlSupport ? false, libmysqlclient , postgresqlSupport ? false, postgresql { lib, stdenv, fetchurl, pkg-config, libevent, libiconv, openssl, pcre, zlib, odbcSupport ? true, unixODBC, snmpSupport ? stdenv.buildPlatform == stdenv.hostPlatform, net-snmp, sshSupport ? true, libssh2, sqliteSupport ? false, sqlite, mysqlSupport ? false, libmysqlclient, postgresqlSupport ? false, postgresql, }: # ensure exactly one database type is selected Loading @@ -15,7 +30,8 @@ assert sqliteSupport -> !mysqlSupport && !postgresqlSupport; let inherit (lib) optional optionalString; in import ./versions.nix ({ version, hash, ... }: import ./versions.nix ( { version, hash, ... }: stdenv.mkDerivation { pname = "zabbix-proxy"; inherit version; Loading @@ -26,7 +42,8 @@ in }; nativeBuildInputs = [ pkg-config ]; buildInputs = [ buildInputs = [ libevent libiconv openssl Loading @@ -40,7 +57,8 @@ in ++ optional mysqlSupport libmysqlclient ++ optional postgresqlSupport postgresql; configureFlags = [ configureFlags = [ "--enable-ipv6" "--enable-proxy" "--with-iconv" Loading @@ -65,15 +83,19 @@ in "RANLIB:=$(RANLIB)" ]; postInstall = '' postInstall = '' mkdir -p $out/share/zabbix/database/ '' + optionalString sqliteSupport '' '' + optionalString sqliteSupport '' mkdir -p $out/share/zabbix/database/sqlite3 cp -prvd database/sqlite3/schema.sql $out/share/zabbix/database/sqlite3/ '' + optionalString mysqlSupport '' '' + optionalString mysqlSupport '' mkdir -p $out/share/zabbix/database/mysql cp -prvd database/mysql/schema.sql $out/share/zabbix/database/mysql/ '' + optionalString postgresqlSupport '' '' + optionalString postgresqlSupport '' mkdir -p $out/share/zabbix/database/postgresql cp -prvd database/postgresql/schema.sql $out/share/zabbix/database/postgresql/ ''; Loading @@ -81,8 +103,10 @@ in meta = { description = "Enterprise-class open source distributed monitoring solution (client-server proxy)"; homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut ]; platforms = lib.platforms.linux; }; }) } ) pkgs/servers/monitoring/zabbix/server.nix +74 −40 Original line number Diff line number Diff line { lib, stdenv, fetchurl, autoreconfHook, pkg-config, curl, libevent, libiconv, libxml2, openssl, pcre, zlib , jabberSupport ? true, iksemel , ldapSupport ? true, openldap , odbcSupport ? true, unixODBC , snmpSupport ? true, net-snmp , sshSupport ? true, libssh2 , mysqlSupport ? false, libmysqlclient , postgresqlSupport ? false, postgresql , ipmiSupport ? false, openipmi { lib, stdenv, fetchurl, autoreconfHook, pkg-config, curl, libevent, libiconv, libxml2, openssl, pcre, zlib, jabberSupport ? true, iksemel, ldapSupport ? true, openldap, odbcSupport ? true, unixODBC, snmpSupport ? true, net-snmp, sshSupport ? true, libssh2, mysqlSupport ? false, libmysqlclient, postgresqlSupport ? false, postgresql, ipmiSupport ? false, openipmi, }: # ensure exactly one primary database type is selected Loading @@ -16,7 +36,8 @@ assert postgresqlSupport -> !mysqlSupport; let inherit (lib) optional optionalString; in import ./versions.nix ({ version, hash, ... }: import ./versions.nix ( { version, hash, ... }: stdenv.mkDerivation { pname = "zabbix-server"; inherit version; Loading @@ -26,8 +47,12 @@ in inherit hash; }; nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ curl libevent libiconv Loading @@ -45,7 +70,8 @@ in ++ optional postgresqlSupport postgresql ++ optional ipmiSupport openipmi; configureFlags = [ configureFlags = [ "--enable-ipv6" "--enable-server" "--with-iconv" Loading Loading @@ -76,13 +102,16 @@ in done ''; postInstall = '' postInstall = '' mkdir -p $out/share/zabbix/database/ cp -r include $out/ '' + optionalString mysqlSupport '' '' + optionalString mysqlSupport '' mkdir -p $out/share/zabbix/database/mysql cp -prvd database/mysql/*.sql $out/share/zabbix/database/mysql/ '' + optionalString postgresqlSupport '' '' + optionalString postgresqlSupport '' mkdir -p $out/share/zabbix/database/postgresql cp -prvd database/postgresql/*.sql $out/share/zabbix/database/postgresql/ ''; Loading @@ -90,8 +119,13 @@ in meta = { description = "Enterprise-class open source distributed monitoring solution"; homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut psyanticy ]; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut psyanticy ]; platforms = lib.platforms.linux; }; }) } ) pkgs/servers/monitoring/zabbix/web.nix +15 −7 Original line number Diff line number Diff line { lib, stdenv, fetchurl, writeText }: { lib, stdenv, fetchurl, writeText, }: import ./versions.nix ({ version, hash, ... }: import ./versions.nix ( { version, hash, ... }: stdenv.mkDerivation rec { pname = "zabbix-web"; inherit version; Loading @@ -25,8 +31,10 @@ import ./versions.nix ({ version, hash, ... }: meta = { description = "Enterprise-class open source distributed monitoring solution (web frontend)"; homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut ]; platforms = lib.platforms.linux; }; }) } ) Loading
pkgs/servers/monitoring/zabbix/agent.nix +19 −5 Original line number Diff line number Diff line { lib, stdenv, fetchurl, pkg-config, libiconv, openssl, pcre }: { lib, stdenv, fetchurl, pkg-config, libiconv, openssl, pcre, }: import ./versions.nix ({ version, hash, ... }: import ./versions.nix ( { version, hash, ... }: stdenv.mkDerivation { pname = "zabbix-agent"; inherit version; Loading Loading @@ -36,8 +45,13 @@ import ./versions.nix ({ version, hash, ... }: meta = { description = "Enterprise-class open source distributed monitoring solution (client-side agent)"; homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut psyanticy ]; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut psyanticy ]; platforms = lib.platforms.unix; }; }) } )
pkgs/servers/monitoring/zabbix/agent2.nix +32 −6 Original line number Diff line number Diff line { lib, buildGoModule, fetchurl, autoreconfHook, pkg-config, libiconv, openssl, pcre, zlib }: { lib, buildGoModule, fetchurl, autoreconfHook, pkg-config, libiconv, openssl, pcre, zlib, }: import ./versions.nix ({ version, hash, vendorHash ? throw "unsupported version ${version} for zabbix-agent2", ... }: import ./versions.nix ( { version, hash, vendorHash ? throw "unsupported version ${version} for zabbix-agent2", ... }: buildGoModule { pname = "zabbix-agent2"; inherit version; Loading @@ -14,8 +30,16 @@ import ./versions.nix ({ version, hash, vendorHash ? throw "unsupported version inherit vendorHash; nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ libiconv openssl pcre zlib ]; nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ libiconv openssl pcre zlib ]; inherit (buildGoModule.go) GOOS GOARCH; Loading Loading @@ -59,8 +83,10 @@ import ./versions.nix ({ version, hash, vendorHash ? throw "unsupported version meta = { description = "Enterprise-class open source distributed monitoring solution (client-side agent)"; homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ aanderse ]; platforms = lib.platforms.unix; }; }) } )
pkgs/servers/monitoring/zabbix/proxy.nix +61 −37 Original line number Diff line number Diff line { lib, stdenv, fetchurl, pkg-config, libevent, libiconv, openssl, pcre, zlib , odbcSupport ? true, unixODBC , snmpSupport ? stdenv.buildPlatform == stdenv.hostPlatform, net-snmp , sshSupport ? true, libssh2 , sqliteSupport ? false, sqlite , mysqlSupport ? false, libmysqlclient , postgresqlSupport ? false, postgresql { lib, stdenv, fetchurl, pkg-config, libevent, libiconv, openssl, pcre, zlib, odbcSupport ? true, unixODBC, snmpSupport ? stdenv.buildPlatform == stdenv.hostPlatform, net-snmp, sshSupport ? true, libssh2, sqliteSupport ? false, sqlite, mysqlSupport ? false, libmysqlclient, postgresqlSupport ? false, postgresql, }: # ensure exactly one database type is selected Loading @@ -15,7 +30,8 @@ assert sqliteSupport -> !mysqlSupport && !postgresqlSupport; let inherit (lib) optional optionalString; in import ./versions.nix ({ version, hash, ... }: import ./versions.nix ( { version, hash, ... }: stdenv.mkDerivation { pname = "zabbix-proxy"; inherit version; Loading @@ -26,7 +42,8 @@ in }; nativeBuildInputs = [ pkg-config ]; buildInputs = [ buildInputs = [ libevent libiconv openssl Loading @@ -40,7 +57,8 @@ in ++ optional mysqlSupport libmysqlclient ++ optional postgresqlSupport postgresql; configureFlags = [ configureFlags = [ "--enable-ipv6" "--enable-proxy" "--with-iconv" Loading @@ -65,15 +83,19 @@ in "RANLIB:=$(RANLIB)" ]; postInstall = '' postInstall = '' mkdir -p $out/share/zabbix/database/ '' + optionalString sqliteSupport '' '' + optionalString sqliteSupport '' mkdir -p $out/share/zabbix/database/sqlite3 cp -prvd database/sqlite3/schema.sql $out/share/zabbix/database/sqlite3/ '' + optionalString mysqlSupport '' '' + optionalString mysqlSupport '' mkdir -p $out/share/zabbix/database/mysql cp -prvd database/mysql/schema.sql $out/share/zabbix/database/mysql/ '' + optionalString postgresqlSupport '' '' + optionalString postgresqlSupport '' mkdir -p $out/share/zabbix/database/postgresql cp -prvd database/postgresql/schema.sql $out/share/zabbix/database/postgresql/ ''; Loading @@ -81,8 +103,10 @@ in meta = { description = "Enterprise-class open source distributed monitoring solution (client-server proxy)"; homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut ]; platforms = lib.platforms.linux; }; }) } )
pkgs/servers/monitoring/zabbix/server.nix +74 −40 Original line number Diff line number Diff line { lib, stdenv, fetchurl, autoreconfHook, pkg-config, curl, libevent, libiconv, libxml2, openssl, pcre, zlib , jabberSupport ? true, iksemel , ldapSupport ? true, openldap , odbcSupport ? true, unixODBC , snmpSupport ? true, net-snmp , sshSupport ? true, libssh2 , mysqlSupport ? false, libmysqlclient , postgresqlSupport ? false, postgresql , ipmiSupport ? false, openipmi { lib, stdenv, fetchurl, autoreconfHook, pkg-config, curl, libevent, libiconv, libxml2, openssl, pcre, zlib, jabberSupport ? true, iksemel, ldapSupport ? true, openldap, odbcSupport ? true, unixODBC, snmpSupport ? true, net-snmp, sshSupport ? true, libssh2, mysqlSupport ? false, libmysqlclient, postgresqlSupport ? false, postgresql, ipmiSupport ? false, openipmi, }: # ensure exactly one primary database type is selected Loading @@ -16,7 +36,8 @@ assert postgresqlSupport -> !mysqlSupport; let inherit (lib) optional optionalString; in import ./versions.nix ({ version, hash, ... }: import ./versions.nix ( { version, hash, ... }: stdenv.mkDerivation { pname = "zabbix-server"; inherit version; Loading @@ -26,8 +47,12 @@ in inherit hash; }; nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ curl libevent libiconv Loading @@ -45,7 +70,8 @@ in ++ optional postgresqlSupport postgresql ++ optional ipmiSupport openipmi; configureFlags = [ configureFlags = [ "--enable-ipv6" "--enable-server" "--with-iconv" Loading Loading @@ -76,13 +102,16 @@ in done ''; postInstall = '' postInstall = '' mkdir -p $out/share/zabbix/database/ cp -r include $out/ '' + optionalString mysqlSupport '' '' + optionalString mysqlSupport '' mkdir -p $out/share/zabbix/database/mysql cp -prvd database/mysql/*.sql $out/share/zabbix/database/mysql/ '' + optionalString postgresqlSupport '' '' + optionalString postgresqlSupport '' mkdir -p $out/share/zabbix/database/postgresql cp -prvd database/postgresql/*.sql $out/share/zabbix/database/postgresql/ ''; Loading @@ -90,8 +119,13 @@ in meta = { description = "Enterprise-class open source distributed monitoring solution"; homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut psyanticy ]; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut psyanticy ]; platforms = lib.platforms.linux; }; }) } )
pkgs/servers/monitoring/zabbix/web.nix +15 −7 Original line number Diff line number Diff line { lib, stdenv, fetchurl, writeText }: { lib, stdenv, fetchurl, writeText, }: import ./versions.nix ({ version, hash, ... }: import ./versions.nix ( { version, hash, ... }: stdenv.mkDerivation rec { pname = "zabbix-web"; inherit version; Loading @@ -25,8 +31,10 @@ import ./versions.nix ({ version, hash, ... }: meta = { description = "Enterprise-class open source distributed monitoring solution (web frontend)"; homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ mmahut ]; platforms = lib.platforms.linux; }; }) } )