2022-11-02 22:02:43 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bomber-go";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.4.7";
|
2022-11-02 22:02:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "devops-kung-fu";
|
|
|
|
repo = "bomber";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-q3x3duXc2++BvVul2a5fBTcPHWrOHpPOGHBUXL08syg=";
|
2022-11-02 22:02:43 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-jVdrvc48/Vt240EYk5PtZCjNGipX7M1qF8OJdpu/qI4=";
|
2022-11-02 22:02:43 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-w"
|
|
|
|
"-s"
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
checkFlags = [
|
|
|
|
"-skip=TestEnrich" # Requires network access
|
|
|
|
];
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to scans Software Bill of Materials (SBOMs) for vulnerabilities";
|
|
|
|
homepage = "https://github.com/devops-kung-fu/bomber";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/devops-kung-fu/bomber/releases/tag/v${version}";
|
2022-11-02 22:02:43 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
mainProgram = "bomber";
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|