about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/go-cve-search/default.nix
blob: e68970b0b26706ef26f7d8f51a9c9fd5798b7a60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ buildGoModule
, fetchFromGitHub
, lib
}:

buildGoModule rec {
  pname = "go-cve-search";
  version = "0.1.3";

  src = fetchFromGitHub {
    owner = "s-index";
    repo = pname;
    rev = "v${version}";
    sha256 = "0hbv829daviskwsyp9xjcvl52m22986b2cylf2rldnxw5x8zqdvd";
  };

  vendorSha256 = "0bhxk39ivbkhwjvq6415lax1pzn208b7px1id0d1nry93bk2zynd";

  # 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";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}