Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / monitoring / zabbix / agent.nix
blob3836732908c7a019473f77e85a1995a4cf45baa5
1 { lib, stdenv, fetchurl, pkg-config, libiconv, openssl, pcre }:
3 import ./versions.nix ({ version, hash, ... }:
4   stdenv.mkDerivation {
5     pname = "zabbix-agent";
6     inherit version;
8     src = fetchurl {
9       url = "https://cdn.zabbix.com/zabbix/sources/stable/${lib.versions.majorMinor version}/zabbix-${version}.tar.gz";
10       inherit hash;
11     };
13     nativeBuildInputs = [ pkg-config ];
14     buildInputs = [
15       libiconv
16       openssl
17       pcre
18     ];
20     configureFlags = [
21       "--enable-agent"
22       "--enable-ipv6"
23       "--with-iconv"
24       "--with-libpcre"
25       "--with-openssl=${openssl.dev}"
26     ];
27     makeFlags = [
28       "AR:=$(AR)"
29       "RANLIB:=$(RANLIB)"
30     ];
32     postInstall = ''
33       cp conf/zabbix_agentd/*.conf $out/etc/zabbix_agentd.conf.d/
34     '';
36     meta = with lib; {
37       description = "Enterprise-class open source distributed monitoring solution (client-side agent)";
38       homepage = "https://www.zabbix.com/";
39       license = licenses.gpl2Plus;
40       maintainers = with maintainers; [ mmahut psyanticy ];
41       platforms = platforms.linux;
42     };
43   })