nixpkgs/pkgs/development/tools/bearer/default.nix
2024-01-30 13:37:31 +00:00

45 lines
1,013 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, bearer
}:
buildGoModule rec {
pname = "bearer";
version = "1.37.0";
src = fetchFromGitHub {
owner = "bearer";
repo = "bearer";
rev = "refs/tags/v${version}";
hash = "sha256-b4EQAAPYMoL1MP5sVr3Fu0/znWxlVzpeGbghommCpUg=";
};
vendorHash = "sha256-jE1DUANd1PgSWbwz/PV1pIMgzvRm0ApaJaLCljMw4ig=";
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 ];
};
}