2023-05-20 11:17:49 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bearer";
|
2023-05-29 16:16:04 +00:00
|
|
|
version = "1.8.1";
|
2023-05-20 11:17:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bearer";
|
|
|
|
repo = "bearer";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-29 16:16:04 +00:00
|
|
|
hash = "sha256-5Vd6knHm9r2VicHuvPKE7jzRGcNog8THNwDQmW2MJ5Q=";
|
2023-05-20 11:17:49 +00:00
|
|
|
};
|
|
|
|
|
2023-05-26 05:10:38 +00:00
|
|
|
vendorHash = "sha256-FRB01Tfz87MZp4V0HPeiEgYV8KEPcbzkeUM0uIBh6DU=";
|
2023-05-20 11:17:49 +00:00
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"cmd/bearer"
|
|
|
|
];
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-05-29 18:05:21 +00:00
|
|
|
"-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}"
|
2023-05-20 11:17:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks";
|
|
|
|
homepage = "https://github.com/bearer/bearer";
|
|
|
|
changelog = "https://github.com/Bearer/bearer/releases/tag/v${version}";
|
|
|
|
license = with licenses; [ elastic ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|