about summary refs log tree commit diff
path: root/pkgs/servers/monitoring/plugins/default.nix
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-03-19 20:55:53 -0400
committerAaron Andersen <aaron@fosslib.net>2019-03-20 08:50:42 -0400
commit7304454f86fcffb959f34769c6d5859965b0c81a (patch)
tree0d6ec2c5c681eeed1a197577f4576dee22e05dc8 /pkgs/servers/monitoring/plugins/default.nix
parent83e3aff78d2b02ec99c5aa27c07bc27c79709d9c (diff)
monitoring-plugins: add mysql support
Diffstat (limited to 'pkgs/servers/monitoring/plugins/default.nix')
-rw-r--r--pkgs/servers/monitoring/plugins/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/servers/monitoring/plugins/default.nix b/pkgs/servers/monitoring/plugins/default.nix
index 3e6eaa4766e8e..26bcaf519dd3a 100644
--- a/pkgs/servers/monitoring/plugins/default.nix
+++ b/pkgs/servers/monitoring/plugins/default.nix
@@ -1,5 +1,6 @@
-{ stdenv, fetchFromGitHub, autoreconfHook
+{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook
 , coreutils, gnugrep, gnused, lm_sensors, net_snmp, openssh, openssl, perl
+, mysql, zlib
 , runtimeShell }:
 
 with stdenv.lib;
@@ -20,6 +21,14 @@ in stdenv.mkDerivation rec {
     sha256 = "1pw7i6d2cnb5nxi2lbkwps2qzz04j9zd86fzpv9ka896b4aqrwv1";
   };
 
+  patches = [
+    # https://github.com/monitoring-plugins/monitoring-plugins/issues/1508
+    (fetchpatch {
+      url = "https://github.com/monitoring-plugins/monitoring-plugins/commit/ac0437ff896ba9ce2549b2d2ec3de146a886f08a.patch";
+      sha256 = "0jf6fqkyzag66rid92m7asnr2dp8rr8kn4zjvhqg0mqvf8imppky";
+    })
+  ];
+
   # !!! 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
@@ -39,7 +48,7 @@ in stdenv.mkDerivation rec {
   '';
 
   # !!! make openssh a runtime dependency only
-  buildInputs = [ net_snmp openssh openssl perl ];
+  buildInputs = [ mysql net_snmp openssh openssl perl zlib ];
 
   nativeBuildInputs = [ autoreconfHook ];