about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/go-exploitdb/default.nix
blob: d400cd22a6f05ab8ec2ab77f2f533c16f60acf7d (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
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "go-exploitdb";
  version = "0.4.6";

  src = fetchFromGitHub {
    owner = "vulsio";
    repo = "go-exploitdb";
    rev = "refs/tags/v${version}";
    hash = "sha256-xQQnMlj5dxvvGPqzMyMVloJQe5qY2EPQkYaw3RpgxjI=";
  };

  vendorHash = "sha256-1HvhphLJH0572au2iSXVjN35JCpZr1hesnMrIpdOBRc=";

  ldflags = [
    "-s"
    "-w"
    "-X=github.com/vulsio/go-exploitdb/config.Version=${version}"
  ];

  meta = with lib; {
    description = "Tool for searching Exploits from Exploit Databases, etc";
    homepage = "https://github.com/vulsio/go-exploitdb";
    changelog = "https://github.com/vulsio/go-exploitdb/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}