depot/third_party/nixpkgs/pkgs/tools/networking/snmpcheck/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

30 lines
702 B
Nix

{ 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 ];
};
}