aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/networking/argus
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2019-12-21 22:44:50 +0000
committerJörg Thalheim <joerg@thalheim.io>2019-12-21 22:56:08 +0000
commit725f85e271b934b57383abd7db81cc601b4b4c18 (patch)
treef797c6f1fa23062b2d49f75bdd044313d4c5c120 /pkgs/tools/networking/argus
parent475aecef6a829752dfa5dd5e6f2488da65f8af22 (diff)
net-snmp: rename from net_snmp
Diffstat (limited to 'pkgs/tools/networking/argus')
-rw-r--r--pkgs/tools/networking/argus/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/tools/networking/argus/default.nix b/pkgs/tools/networking/argus/default.nix
index d75234d15d08..bb9abccc933a 100644
--- a/pkgs/tools/networking/argus/default.nix
+++ b/pkgs/tools/networking/argus/default.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers,
- pkgconfig, procps, which, wget, lsof, net_snmp, perl }:
+ pkgconfig, procps, which, wget, lsof, net-snmp, perl }:
stdenv.mkDerivation rec {
pname = "argus";
@@ -10,9 +10,9 @@ stdenv.mkDerivation rec {
sha256 = "1zzf688dbbcb5z2r9v1p28rddns6znzx35nc05ygza6lp7aknkna";
};
- propagatedBuildInputs = [ procps which wget lsof net_snmp ];
nativeBuildInputs = [ pkgconfig bison flex ];
buildInputs = [ libpcap cyrus_sasl tcp_wrappers ];
+ propagatedBuildInputs = [ procps which wget lsof net-snmp ];
patchPhase = ''
substituteInPlace events/argus-extip.pl \
@@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
substituteInPlace events/argus-vmstat.sh \
--replace vm_stat ${procps}/bin/vmstat
substituteInPlace events/argus-snmp.sh \
- --replace /usr/bin/snmpget ${net_snmp}/bin/snmpget \
- --replace /usr/bin/snmpwalk ${net_snmp}/bin/snmpwalk
+ --replace /usr/bin/snmpget ${stdenv.lib.getBin net-snmp}/bin/snmpget \
+ --replace /usr/bin/snmpwalk ${stdenv.lib.getBin net-snmp}/bin/snmpwalk
'';
meta = with stdenv.lib; {