nixpkgs/pkgs/tools/security/go-exploitdb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
821 B
Nix
Raw Normal View History

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";
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 ];
};
}