about summary refs log tree commit diff
path: root/pkgs/servers/monitoring/zabbix/default.nix
blob: df632a69b31a36fc76f7fb83fa6f5ca73879b43f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{stdenv, fetchurl, enableServer ? false, postgresql ? null, curl ? null}:

stdenv.mkDerivation {
  name = "zabbix-1.4.5";

  src = fetchurl {
    url = mirror://sourceforge/zabbix/zabbix-1.4.5.tar.gz;
    sha256 = "1ha82q6rp49rgdfmni73y60kqjy00mfr2bp10mb0gnb0k4v9ppmb";
  };

  configureFlags = "--enable-agent " +
    (if enableServer then ''
      --enable-server
      --with-pgsql
      --with-libcurl
    '' else "");

  buildInputs = stdenv.lib.optionals enableServer [postgresql curl];

  meta = {
    description = "An enterprise-class open source distributed monitoring solution";
    homepage = http://www.zabbix.com/;
    license = "GPL";
  };
}