blob: d0f554e452da3d594eff20d5295175de036a832b (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
|
{ stdenv, fetchurl
, autoreconfHook
, procps, perl
, fping, openssh, bind
, mariadb
, openssl
}:
stdenv.mkDerivation rec {
version = "2.1.2";
name = "monitoring-plugins-${version}";
src = fetchurl {
url = "https://github.com/monitoring-plugins/monitoring-plugins/archive/v${version}.tar.gz";
sha256 = "0mgs59326yzvx92pdqmn671d40czixd7k60dvsbz89ah2r96vps7";
};
buildInputs = [
autoreconfHook
procps perl
fping openssh bind
mariadb.lib
openssl
];
patches = [
./mysql_check_slave.patch
];
configurePhase = ''
./configure \
--prefix=$out \
--disable-nls \
--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" \
--with-trusted-path=/var/setuid-wrappers:/run/current-system/sw/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin
'';
}
|