From 0536b97fb49f7c42ef84621ef87f6bb0ff64d66a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Feb 2023 13:50:51 +0100 Subject: [PATCH 1/2] vt-cli: add changelog to meta --- pkgs/tools/security/vt-cli/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/vt-cli/default.nix b/pkgs/tools/security/vt-cli/default.nix index eccafd7b0edd..26338528758a 100644 --- a/pkgs/tools/security/vt-cli/default.nix +++ b/pkgs/tools/security/vt-cli/default.nix @@ -10,11 +10,11 @@ buildGoModule rec { src = fetchFromGitHub { owner = "VirusTotal"; repo = pname; - rev = version; - sha256 = "0jqr2xf6f9ywavkx5hzcfnky8ax23ahdj24hjsnq6zlpdqvfn1xb"; + rev = "refs/tags/${version}"; + hash = "sha256-qwfrNm6XfoOtlpAI2aAaoivkp3Xsw9LnVtwnZ1wXGUs="; }; - vendorSha256 = "sha256-XN6dJpoJe9nJn+Tr9SYD64LE0XFiO2vlpdyI9SrZZjQ="; + vendorHash = "sha256-XN6dJpoJe9nJn+Tr9SYD64LE0XFiO2vlpdyI9SrZZjQ="; ldflags = [ "-X github.com/VirusTotal/vt-cli/cmd.Version=${version}" @@ -25,6 +25,7 @@ buildGoModule rec { meta = with lib; { description = "VirusTotal Command Line Interface"; homepage = "https://github.com/VirusTotal/vt-cli"; + changelog = "https://github.com/VirusTotal/vt-cli/releases/tag/${version}"; license = licenses.asl20; maintainers = with maintainers; [ dit7ya ]; }; From 6ef8111cc762e85ccc2a5fb57529fab1837f88bf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 28 Feb 2023 13:53:54 +0100 Subject: [PATCH 2/2] vt-cli: add mainProgram --- pkgs/tools/security/vt-cli/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/security/vt-cli/default.nix b/pkgs/tools/security/vt-cli/default.nix index 26338528758a..3a549d7e6f1a 100644 --- a/pkgs/tools/security/vt-cli/default.nix +++ b/pkgs/tools/security/vt-cli/default.nix @@ -27,6 +27,7 @@ buildGoModule rec { homepage = "https://github.com/VirusTotal/vt-cli"; changelog = "https://github.com/VirusTotal/vt-cli/releases/tag/${version}"; license = licenses.asl20; + mainProgram = "vt"; maintainers = with maintainers; [ dit7ya ]; }; }