Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
36 lines
692 B
Nix
36 lines
692 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;
|
|
mainProgram = "snmp-check";
|
|
};
|
|
}
|