summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/nv/nvdtools/package.nix
blob: 7db368207b882a3b9e080a145bde1d13127656cd (plain)
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
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule (finalAttrs: {
  pname = "nvdtools";
  version = "0.1.5";

  src = fetchFromGitHub {
    owner = "facebookincubator";
    repo = "nvdtools";
    tag = "v${finalAttrs.version}";
    hash = "sha256-uB7dfqGaoP9Xx04BykscIFQ2rckaMaj93gh5mhgMqfw=";
  };

  vendorHash = "sha256-DzhP42DaddIm+/Z3a83rWX5WY+tM1P+vBNe6B91L7E8=";

  ldflags = [
    "-s"
    "-w"
  ];

  meta = {
    description = "Tools to work with the feeds (vulnerabilities, CPE dictionary etc.) distributed by National Vulnerability Database";
    homepage = "https://github.com/facebookincubator/nvdtools";
    changelog = "https://github.com/facebookincubator/nvdtools/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
})