429e8c3835
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/h6fdhwd698dwp4v91x1hqsjymrhr230b-nagios-4.3.4/bin/nagios -V` and found version 4.3.4 - ran `/nix/store/h6fdhwd698dwp4v91x1hqsjymrhr230b-nagios-4.3.4/bin/nagios --version` and found version 4.3.4 - ran `/nix/store/h6fdhwd698dwp4v91x1hqsjymrhr230b-nagios-4.3.4/bin/nagiostats -V` and found version 4.3.4 - ran `/nix/store/h6fdhwd698dwp4v91x1hqsjymrhr230b-nagios-4.3.4/bin/nagiostats --version` and found version 4.3.4 - found 4.3.4 with grep in /nix/store/h6fdhwd698dwp4v91x1hqsjymrhr230b-nagios-4.3.4 - found 4.3.4 in filename of file in /nix/store/h6fdhwd698dwp4v91x1hqsjymrhr230b-nagios-4.3.4 cc "@thoughtpolice @relrod"
31 lines
936 B
Nix
31 lines
936 B
Nix
{ stdenv, fetchurl, perl, php, gd, libpng, zlib, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "nagios-${version}";
|
|
version = "4.3.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/nagios/nagios-4.x/${name}/${name}.tar.gz";
|
|
sha256 = "1wa4m952sb23dqi5w759adimsp21bkhp598rpq9dnhz3v497h2y9";
|
|
};
|
|
|
|
patches = [ ./nagios.patch ];
|
|
buildInputs = [ php perl gd libpng zlib unzip ];
|
|
|
|
configureFlags = [ "--localstatedir=/var/lib/nagios" ];
|
|
buildFlags = "all";
|
|
|
|
# Do not create /var directories
|
|
preInstall = ''
|
|
substituteInPlace Makefile --replace '$(MAKE) install-basic' ""
|
|
'';
|
|
installTargets = "install install-config";
|
|
|
|
meta = {
|
|
description = "A host, service and network monitoring program";
|
|
homepage = https://www.nagios.org/;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice relrod ];
|
|
};
|
|
}
|