about summary refs log tree commit diff
path: root/pkgs/servers/monitoring
diff options
context:
space:
mode:
authormichael bishop <cleverca22@gmail.com>2015-12-15 08:45:58 -0400
committermichael bishop <cleverca22@gmail.com>2015-12-15 08:45:58 -0400
commit88bccd83feffe9643169303c333bfc57f0f5dfec (patch)
tree5f51ca0af825750fb088ca45677caa8f3d20c2df /pkgs/servers/monitoring
parent903803a1f379951c68224f847ccdf717fcf2d36c (diff)
downloadnixlib-88bccd83feffe9643169303c333bfc57f0f5dfec.tar
nixlib-88bccd83feffe9643169303c333bfc57f0f5dfec.tar.gz
nixlib-88bccd83feffe9643169303c333bfc57f0f5dfec.tar.bz2
nixlib-88bccd83feffe9643169303c333bfc57f0f5dfec.tar.lz
nixlib-88bccd83feffe9643169303c333bfc57f0f5dfec.tar.xz
nixlib-88bccd83feffe9643169303c333bfc57f0f5dfec.tar.zst
nixlib-88bccd83feffe9643169303c333bfc57f0f5dfec.zip
net-snmp: fix mnttab path when built under chroot
Diffstat (limited to 'pkgs/servers/monitoring')
-rw-r--r--pkgs/servers/monitoring/net-snmp/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/monitoring/net-snmp/default.nix b/pkgs/servers/monitoring/net-snmp/default.nix
index efc61b9fd6b2..c53f52422cf9 100644
--- a/pkgs/servers/monitoring/net-snmp/default.nix
+++ b/pkgs/servers/monitoring/net-snmp/default.nix
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
       "--with-logfile=/var/log/net-snmpd.log"
       "--with-persistent-directory=/var/lib/net-snmp"
       "--with-openssl=${openssl}"
-    ];
+    ] ++ stdenv.lib.optional stdenv.isLinux [ "--with-mnttab=/proc/mounts" ];
 
   buildInputs = [ autoreconfHook file perl unzip openssl ];