nixpkgs/pkgs/tools/security/go-cve-search/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
853 B
Nix
Raw Normal View History

2023-02-20 11:04:57 +00:00
{ lib
, buildGoModule
2021-01-19 10:59:43 +00:00
, fetchFromGitHub
}:
buildGoModule rec {
pname = "go-cve-search";
2023-02-19 00:24:00 +00:00
version = "0.1.4";
2021-01-19 10:59:43 +00:00
src = fetchFromGitHub {
owner = "s-index";
repo = pname;
2023-02-20 11:04:57 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-ofa6lfA3XKj70YM6AVNKRgGI53teK7OB09luAom8HpQ=";
2021-01-19 10:59:43 +00:00
};
2023-02-19 00:24:00 +00:00
vendorHash = "sha256-QXYjLPrfIPcZE8UTcE1kR9QQIusR/rAJG+e/IQ4P0PU=";
2021-01-19 10:59:43 +00:00
# Tests requires network access
doCheck = false;
meta = with lib; {
description = "A lightweight CVE search tool";
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-02-20 11:04:57 +00:00
changelog = "https://github.com/s-index/go-cve-search/releases/tag/v${version}";
2021-01-19 10:59:43 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}