pkgs/govulncheck: update and only install the single bin
This commit is contained in:
parent
1cb898a3cd
commit
99fdb47a81
@ -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;
|
||||||
|
@ -1,26 +1,22 @@
|
|||||||
{ 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";
|
||||||
|
Loading…
Reference in New Issue
Block a user