2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
testers,
|
|
|
|
bearer,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "bearer";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.43.8";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bearer";
|
|
|
|
repo = "bearer";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-rDmS13eDPYE/UmyCRsBi1wHOZerYf9QS/pOiPKVxwKA=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-7rTbLnFfdmRQgQfx2w/mO3Ac5ENEFm5XPzApKwlImkE=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
subPackages = [ "cmd/bearer" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-07-15 17:15:38 +00:00
|
|
|
"-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}"
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = bearer;
|
|
|
|
command = "bearer version";
|
|
|
|
};
|
|
|
|
};
|
2023-05-24 13:37:59 +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}";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = with licenses; [ elastic20 ];
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|