2023-05-20 21:49:16 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-exploitdb";
|
2023-10-28 11:25:02 +02:00
|
|
|
version = "0.4.6";
|
2023-05-20 21:49:16 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vulsio";
|
|
|
|
repo = "go-exploitdb";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-28 11:25:02 +02:00
|
|
|
hash = "sha256-xQQnMlj5dxvvGPqzMyMVloJQe5qY2EPQkYaw3RpgxjI=";
|
2023-05-20 21:49:16 +02:00
|
|
|
};
|
|
|
|
|
2023-10-28 11:25:02 +02:00
|
|
|
vendorHash = "sha256-1HvhphLJH0572au2iSXVjN35JCpZr1hesnMrIpdOBRc=";
|
2023-05-20 21:49:16 +02:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=github.com/vulsio/go-exploitdb/config.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for searching Exploits from Exploit Databases, etc";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "go-exploitdb";
|
2023-05-20 21:49:16 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|