1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "vt-cli";
8 version = "0.10.2";
9
10 src = fetchFromGitHub {
11 owner = "VirusTotal";
12 repo = pname;
13 rev = "refs/tags/${version}";
14 hash = "sha256-qwfrNm6XfoOtlpAI2aAaoivkp3Xsw9LnVtwnZ1wXGUs=";
15 };
16
17 vendorHash = "sha256-XN6dJpoJe9nJn+Tr9SYD64LE0XFiO2vlpdyI9SrZZjQ=";
18
19 ldflags = [
20 "-X github.com/VirusTotal/vt-cli/cmd.Version=${version}"
21 ];
22
23 subPackages = [ "vt" ];
24
25 meta = with lib; {
26 description = "VirusTotal Command Line Interface";
27 homepage = "https://github.com/VirusTotal/vt-cli";
28 changelog = "https://github.com/VirusTotal/vt-cli/releases/tag/${version}";
29 license = licenses.asl20;
30 mainProgram = "vt";
31 maintainers = with maintainers; [ dit7ya ];
32 };
33}