bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
44 lines
1,014 B
Nix
44 lines
1,014 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
testers,
|
|
bearer,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "bearer";
|
|
version = "1.43.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bearer";
|
|
repo = "bearer";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-rDmS13eDPYE/UmyCRsBi1wHOZerYf9QS/pOiPKVxwKA=";
|
|
};
|
|
|
|
vendorHash = "sha256-7rTbLnFfdmRQgQfx2w/mO3Ac5ENEFm5XPzApKwlImkE=";
|
|
|
|
subPackages = [ "cmd/bearer" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}"
|
|
];
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion {
|
|
package = bearer;
|
|
command = "bearer version";
|
|
};
|
|
};
|
|
|
|
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; [ elastic20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|