diff options
author | Enno Richter <enno@nerdworks.de> | 2021-06-21 12:45:59 +0200 |
---|---|---|
committer | Enno Richter <enno@nerdworks.de> | 2021-08-01 09:46:29 +0200 |
commit | 7ad795da18399c3e1dc07bef876a8046fcf6a702 (patch) | |
tree | 7d666cf3425cea62437911f3fa4bd223359b4a4d /pkgs/tools/networking/snmpcheck | |
parent | 772d9c3b20736a8b4dfc87f7f0cd3fda1cae2aca (diff) |
snmpcheck: init at 1.9
Diffstat (limited to 'pkgs/tools/networking/snmpcheck')
-rw-r--r-- | pkgs/tools/networking/snmpcheck/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/networking/snmpcheck/default.nix b/pkgs/tools/networking/snmpcheck/default.nix new file mode 100644 index 0000000000000..e27ead59e9716 --- /dev/null +++ b/pkgs/tools/networking/snmpcheck/default.nix @@ -0,0 +1,30 @@ +{ stdenv, lib, fetchurl, ruby }: + +let + rubyEnv = ruby.withPackages (ps: [ ps.snmp ]); +in +stdenv.mkDerivation rec { + pname = "snmpcheck"; + version = "1.9"; + src = fetchurl { + url = "http://www.nothink.org/codes/snmpcheck/snmpcheck-${version}.rb"; + sha256 = "sha256-9xkLqbgxU1uykx+M9QsbPAH8OI/Cqn9uw6ALe23Lbq0="; + executable = true; + }; + + dontUnpack = true; + + buildInputs = [ rubyEnv.wrappedRuby ]; + + installPhase = '' + mkdir -p $out/bin + cp $src $out/bin/snmp-check + ''; + + meta = with lib; { + description = "SNMP enumerator"; + homepage = "http://www.nothink.org/codes/snmpcheck/"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ elohmeier ]; + }; +} |