nixpkgs/pkgs/tools/security/vt-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
782 B
Nix
Raw Normal View History

2022-08-21 10:04:06 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "vt-cli";
version = "0.10.2";
src = fetchFromGitHub {
owner = "VirusTotal";
repo = pname;
2023-02-28 12:50:51 +00:00
rev = "refs/tags/${version}";
hash = "sha256-qwfrNm6XfoOtlpAI2aAaoivkp3Xsw9LnVtwnZ1wXGUs=";
2022-08-21 10:04:06 +00:00
};
2023-02-28 12:50:51 +00:00
vendorHash = "sha256-XN6dJpoJe9nJn+Tr9SYD64LE0XFiO2vlpdyI9SrZZjQ=";
2022-08-21 10:04:06 +00:00
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";
2023-02-28 12:50:51 +00:00
changelog = "https://github.com/VirusTotal/vt-cli/releases/tag/${version}";
2022-08-21 10:04:06 +00:00
license = licenses.asl20;
2023-02-28 12:53:54 +00:00
mainProgram = "vt";
2022-08-21 10:04:06 +00:00
maintainers = with maintainers; [ dit7ya ];
};
}