diff --git a/pkgs/tools/security/vt-cli/default.nix b/pkgs/tools/security/vt-cli/default.nix new file mode 100644 index 000000000000..eccafd7b0edd --- /dev/null +++ b/pkgs/tools/security/vt-cli/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "vt-cli"; + version = "0.10.2"; + + src = fetchFromGitHub { + owner = "VirusTotal"; + repo = pname; + rev = version; + sha256 = "0jqr2xf6f9ywavkx5hzcfnky8ax23ahdj24hjsnq6zlpdqvfn1xb"; + }; + + vendorSha256 = "sha256-XN6dJpoJe9nJn+Tr9SYD64LE0XFiO2vlpdyI9SrZZjQ="; + + ldflags = [ + "-X github.com/VirusTotal/vt-cli/cmd.Version=${version}" + ]; + + subPackages = [ "vt" ]; + + meta = with lib; { + description = "VirusTotal Command Line Interface"; + homepage = "https://github.com/VirusTotal/vt-cli"; + license = licenses.asl20; + maintainers = with maintainers; [ dit7ya ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 97690ce0b1f3..6a67725ce19e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5881,6 +5881,8 @@ with pkgs; vowpal-wabbit = callPackage ../applications/science/machine-learning/vowpal-wabbit { }; + vt-cli = callPackage ../tools/security/vt-cli { }; + utahfs = callPackage ../applications/networking/utahfs { }; wakeonlan = callPackage ../tools/networking/wakeonlan { };