pkgs/govulncheck: update and only install the single bin

This commit is contained in:
Aaron Bieber 2022-10-31 07:20:28 -06:00
parent 1cb898a3cd
commit 99fdb47a81
No known key found for this signature in database
2 changed files with 8 additions and 11 deletions

View File

@ -195,6 +195,7 @@
isUnstable = true; isUnstable = true;
}; };
gosignify = pkgs.callPackage ./pkgs/gosignify.nix { inherit pkgs; }; gosignify = pkgs.callPackage ./pkgs/gosignify.nix { inherit pkgs; };
govulncheck = pkgs.callPackage ./pkgs/govulncheck.nix { inherit pkgs; };
zutty = pkgs.callPackage ./pkgs/zutty.nix { zutty = pkgs.callPackage ./pkgs/zutty.nix {
inherit pkgs; inherit pkgs;
isUnstable = true; isUnstable = true;

View File

@ -1,27 +1,23 @@
{ lib, buildGo118Module, fetchFromGitHub, isUnstable, ... }: { lib, buildGo118Module, fetchFromGitHub, ... }:
let with lib;
vendorHash = if isUnstable then
"sha256-MFsjEHKVuQmLzebSy38B0BcPgpzwUmfjbr2rYhUTGLE="
else
"sha256-MFsjEHKVuQmLzebSy38B0BcPgpzwUmfjbr2rYhUTGLE=";
in with lib;
buildGo118Module rec { buildGo118Module rec {
name = "vuln"; name = "vuln";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "golang"; owner = "golang";
repo = name; repo = name;
rev = "27dd78d2ca392c1738e54efe513a2ecb7bf46000"; rev = "995372c58a16";
sha256 = "sha256-G35y1V4W1nLZ+QGvIQwER9whBIBDFUVptrHx78orcI0="; sha256 = "sha256-xkwrgOVMcV7TNtXfuBUPdhBqumbcgG9B9NVcthMrai0=";
}; };
vendorSha256 = vendorHash; vendorSha256 = "sha256-BYxqE/KNvstX9qcSd411nXGWwZOmgj5iHEGRka/tt4Y=";
proxyVendor = true; proxyVendor = true;
doCheck = false; doCheck = false;
subPackages = [ "cmd/govulncheck" ];
meta = { meta = {
description = "tools for the Go vulnerability database"; description = "tools for the Go vulnerability database";
homepage = "https://github.com/golang/vuln"; homepage = "https://github.com/golang/vuln";