2007-11-08 21:20:21 +01:00
|
|
|
{stdenv, fetchurl, openssh}:
|
2007-01-08 19:55:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-11-08 19:17:56 +01:00
|
|
|
name = "nagios-plugins-1.4.10";
|
2007-01-08 19:55:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-11-08 19:17:56 +01:00
|
|
|
url = mirror://sourceforge/nagiosplug/nagios-plugins-1.4.10.tar.gz;
|
|
|
|
sha256 = "0vm7sjiygxbfc5vbsi1g0dakpvynfzi86fhqx4yxd61brn0g8ghr";
|
|
|
|
};
|
|
|
|
|
2007-11-08 21:04:40 +01:00
|
|
|
# !!! Awful hack. Grrr... this of course only works on NixOS.
|
|
|
|
# Anyway the check that configure performs to figure out the ping
|
|
|
|
# syntax is totally impure, because it runs an actual ping to
|
|
|
|
# localhost (which won't work for ping6 if IPv6 support isn't
|
|
|
|
# configured on the build machine).
|
|
|
|
preConfigure= "
|
|
|
|
configureFlagsArray=(
|
|
|
|
--with-ping-command='/var/setuid-wrappers/ping -n -U -w %d -c %d %s'
|
|
|
|
--with-ping6-command='/var/setuid-wrappers/ping6 -n -U -w %d -c %d %s'
|
|
|
|
)
|
|
|
|
";
|
|
|
|
|
2007-11-08 21:20:21 +01:00
|
|
|
buildInputs = [openssh]; # !!! make openssh a runtime dependency only
|
|
|
|
|
2007-11-08 19:17:56 +01:00
|
|
|
meta = {
|
|
|
|
description = "Official plugins for Nagios";
|
|
|
|
homepage = http://www.nagios.org/;
|
|
|
|
license = "GPL";
|
2007-01-08 19:55:23 +01:00
|
|
|
};
|
|
|
|
}
|