2022-10-31 12:01:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bomber-go";
|
2023-12-13 08:12:01 +00:00
|
|
|
version = "0.4.7";
|
2022-10-31 12:01:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "devops-kung-fu";
|
|
|
|
repo = "bomber";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-12-13 08:12:01 +00:00
|
|
|
hash = "sha256-q3x3duXc2++BvVul2a5fBTcPHWrOHpPOGHBUXL08syg=";
|
2022-10-31 12:01:23 +00:00
|
|
|
};
|
|
|
|
|
2023-12-13 08:12:01 +00:00
|
|
|
vendorHash = "sha256-jVdrvc48/Vt240EYk5PtZCjNGipX7M1qF8OJdpu/qI4=";
|
2022-10-31 12:01:23 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-w"
|
|
|
|
"-s"
|
|
|
|
];
|
|
|
|
|
2023-08-22 09:43:43 +00:00
|
|
|
checkFlags = [
|
|
|
|
"-skip=TestEnrich" # Requires network access
|
|
|
|
];
|
|
|
|
|
2022-10-31 12:01:23 +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-02-26 13:34:27 +00:00
|
|
|
changelog = "https://github.com/devops-kung-fu/bomber/releases/tag/v${version}";
|
2022-10-31 12:01:23 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
mainProgram = "bomber";
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|