nixpkgs/pkgs/by-name/vt/vt-cli/package.nix

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

34 lines
781 B
Nix
Raw Normal View History

2022-08-21 10:04:06 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "vt-cli";
2024-08-14 18:44:53 +00:00
version = "1.0.1";
2022-08-21 10:04:06 +00:00
src = fetchFromGitHub {
owner = "VirusTotal";
repo = pname;
2023-02-28 12:50:51 +00:00
rev = "refs/tags/${version}";
2024-08-14 18:44:53 +00:00
hash = "sha256-NB5eo+6IwIxhQX1lwJzPOZ0pSeFVo7LYIEEmDqE4A7Y=";
2022-08-21 10:04:06 +00:00
};
2024-08-14 18:44:53 +00:00
vendorHash = "sha256-s90a35fFHO8Tt7Zjf9bk1VVD2xhG1g4rKmtIuMl0bMQ=";
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 ];
};
}