pkgs/govulncheck: update and only install the single bin
This commit is contained in:
parent
1cb898a3cd
commit
99fdb47a81
@ -195,6 +195,7 @@
|
||||
isUnstable = true;
|
||||
};
|
||||
gosignify = pkgs.callPackage ./pkgs/gosignify.nix { inherit pkgs; };
|
||||
govulncheck = pkgs.callPackage ./pkgs/govulncheck.nix { inherit pkgs; };
|
||||
zutty = pkgs.callPackage ./pkgs/zutty.nix {
|
||||
inherit pkgs;
|
||||
isUnstable = true;
|
||||
|
@ -1,26 +1,22 @@
|
||||
{ lib, buildGo118Module, fetchFromGitHub, isUnstable, ... }:
|
||||
let
|
||||
vendorHash = if isUnstable then
|
||||
"sha256-MFsjEHKVuQmLzebSy38B0BcPgpzwUmfjbr2rYhUTGLE="
|
||||
else
|
||||
"sha256-MFsjEHKVuQmLzebSy38B0BcPgpzwUmfjbr2rYhUTGLE=";
|
||||
|
||||
in with lib;
|
||||
{ lib, buildGo118Module, fetchFromGitHub, ... }:
|
||||
with lib;
|
||||
buildGo118Module rec {
|
||||
name = "vuln";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "golang";
|
||||
repo = name;
|
||||
rev = "27dd78d2ca392c1738e54efe513a2ecb7bf46000";
|
||||
sha256 = "sha256-G35y1V4W1nLZ+QGvIQwER9whBIBDFUVptrHx78orcI0=";
|
||||
rev = "995372c58a16";
|
||||
sha256 = "sha256-xkwrgOVMcV7TNtXfuBUPdhBqumbcgG9B9NVcthMrai0=";
|
||||
};
|
||||
|
||||
vendorSha256 = vendorHash;
|
||||
vendorSha256 = "sha256-BYxqE/KNvstX9qcSd411nXGWwZOmgj5iHEGRka/tt4Y=";
|
||||
|
||||
proxyVendor = true;
|
||||
|
||||
doCheck = false;
|
||||
|
||||
subPackages = [ "cmd/govulncheck" ];
|
||||
|
||||
meta = {
|
||||
description = "tools for the Go vulnerability database";
|
||||
|
Loading…
Reference in New Issue
Block a user