about summary refs log tree commit diff
path: root/pkgs/servers/monitoring/nagios/default.nix
blob: dba063bb1069c8cad9c54c149f910ff99631af3e (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
{ stdenv, fetchurl, perl, gdSupport ? false
, gd ? null, libpng ? null, zlib ? null
}:

stdenv.mkDerivation {
  name = "nagios-2.10";

  src = fetchurl {
    url = mirror://sourceforge/nagios/nagios-2.10.tar.gz;
    md5 = "8c3a29e138f2ff8c8abbd3dd8a40c4b6";
  };

  patches = [./nagios.patch];
  buildInputs = [perl] ++ (if gdSupport then [gd libpng zlib] else []);
  buildFlags = "all";
  installTargets = "install install-config";

  meta = {
    description = "A host, service and network monitoring program";
    homepage = http://www.nagios.org/;
    license = "GPL";
  };
}