depot/third_party/nixpkgs/pkgs/development/tools/bearer/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

44 lines
1,014 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
testers,
bearer,
}:
buildGoModule rec {
pname = "bearer";
version = "1.43.3";
src = fetchFromGitHub {
owner = "bearer";
repo = "bearer";
rev = "refs/tags/v${version}";
hash = "sha256-imSXfub1dn1Q0C777uMDAVoCP7glmvhMBvQ0HC/9CRE=";
};
vendorHash = "sha256-rRlOWQ5M+aNMsnt7zHphm/SQyvPBZUCWpZH1J7TZe28=";
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 ];
};
}