xin/pkgs/govulncheck.nix

27 lines
746 B
Nix
Raw Permalink Normal View History

2022-11-01 07:10:12 -06:00
{ lib, buildGoModule, fetchFromGitHub, ... }:
with lib;
2022-11-01 07:10:12 -06:00
buildGoModule rec {
2022-09-06 09:43:57 -06:00
name = "vuln";
src = fetchFromGitHub {
owner = "golang";
repo = name;
rev = "03dd099d9b0dd4e0a3ab25b3192b9d95c97252ea";
sha256 = "sha256-UJ2svg/exjwH/T3dqHixRgD6ZqYjbV/MpnEEaFza6Ns=";
2022-09-06 09:43:57 -06:00
};
vendorSha256 = "sha256-tk186BCy8l0o1mxaWXcz0BWVMvvMvhEGcTmDdthJlcc=";
2022-09-06 09:43:57 -06:00
#> github.com/tidwall/pretty@v1.2.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
2022-09-06 09:43:57 -06:00
doCheck = false;
2022-11-01 10:35:42 -06:00
subPackages = [ "cmd/govulncheck" ];
2022-09-06 09:43:57 -06:00
meta = {
description = "tools for the Go vulnerability database";
homepage = "https://github.com/golang/vuln";
license = licenses.isc;
maintainers = with maintainers; [ qbit ];
};
}