1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "go-exploitdb";
9 version = "0.6.2";
10
11 src = fetchFromGitHub {
12 owner = "vulsio";
13 repo = "go-exploitdb";
14 tag = "v${version}";
15 hash = "sha256-kfPM1p7ihfCRsxYjqfKbcwaM2DLdOAqQ2ywxzEQV8A4=";
16 };
17
18 vendorHash = "sha256-0RYc0ssdyV1b0DsMD5+0FA6oGStextvajX7SgHVQueU=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X=github.com/vulsio/go-exploitdb/config.Version=${version}"
24 ];
25
26 meta = {
27 description = "Tool for searching Exploits from Exploit Databases, etc";
28 mainProgram = "go-exploitdb";
29 homepage = "https://github.com/vulsio/go-exploitdb";
30 changelog = "https://github.com/vulsio/go-exploitdb/releases/tag/v${version}";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ fab ];
33 };
34}