From 88bccd83feffe9643169303c333bfc57f0f5dfec Mon Sep 17 00:00:00 2001 From: michael bishop Date: Tue, 15 Dec 2015 08:45:58 -0400 Subject: [PATCH] net-snmp: fix mnttab path when built under chroot --- pkgs/servers/monitoring/net-snmp/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/monitoring/net-snmp/default.nix b/pkgs/servers/monitoring/net-snmp/default.nix index efc61b9fd6b..c53f52422cf 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 ];