2022-09-06 11:07:24 -06:00
|
|
|
{ lib, buildGo118Module, fetchFromGitHub, isUnstable, ... }:
|
|
|
|
let
|
|
|
|
vendorHash = if isUnstable then
|
|
|
|
"sha256-XxX+S+hXySwbXruJXM0fK7gcxiZDiysQJcXENoh/PEg="
|
|
|
|
else
|
|
|
|
"sha256-zNH+wKLT9ci5AFWxQ+yKJPhvweQu6DtiRYtTgSWq44U=";
|
2022-09-06 09:43:57 -06:00
|
|
|
|
2022-09-06 11:07:24 -06:00
|
|
|
in with lib;
|
|
|
|
buildGo118Module rec {
|
2022-09-06 09:43:57 -06:00
|
|
|
name = "vuln";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "golang";
|
|
|
|
repo = name;
|
|
|
|
rev = "27dd78d2ca392c1738e54efe513a2ecb7bf46000";
|
|
|
|
sha256 = "sha256-G35y1V4W1nLZ+QGvIQwER9whBIBDFUVptrHx78orcI0=";
|
|
|
|
};
|
|
|
|
|
2022-09-06 11:07:24 -06:00
|
|
|
vendorSha256 = vendorHash;
|
2022-09-06 09:43:57 -06:00
|
|
|
|
|
|
|
proxyVendor = true;
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "tools for the Go vulnerability database";
|
|
|
|
homepage = "https://github.com/golang/vuln";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ qbit ];
|
|
|
|
};
|
|
|
|
}
|