depot/third_party/nixpkgs/pkgs/development/tools/bearer/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

45 lines
1,013 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, bearer
}:
buildGoModule rec {
pname = "bearer";
version = "1.39.0";
src = fetchFromGitHub {
owner = "bearer";
repo = "bearer";
rev = "refs/tags/v${version}";
hash = "sha256-GgdEOTrzaTsSTRW2NUzdxzUxGI1UCIk/6mAoyRysRVc=";
};
vendorHash = "sha256-fCSgRjsioXyt9mxQoZxyA+F63FAwlmwJAjquR+zAgQg=";
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 ];
};
}