2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2021-02-05 17:12:51 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-cve-search";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.1.4";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "s-index";
|
|
|
|
repo = pname;
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-ofa6lfA3XKj70YM6AVNKRgGI53teK7OB09luAom8HpQ=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
vendorHash = "sha256-QXYjLPrfIPcZE8UTcE1kR9QQIusR/rAJG+e/IQ4P0PU=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
# Tests requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A lightweight CVE search tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "go-cve-search";
|
2021-02-05 17:12:51 +00:00
|
|
|
longDescription = ''
|
|
|
|
go-cve-search is a lightweight tool to search CVE (Common Vulnerabilities
|
|
|
|
and Exposures).
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/s-index/go-cve-search";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/s-index/go-cve-search/releases/tag/v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|