nixpkgs/pkgs/development/tools/bearer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1013 B
Nix
Raw Normal View History

2023-05-20 11:17:49 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
2023-05-29 18:07:30 +00:00
, testers
, bearer
2023-05-20 11:17:49 +00:00
}:
buildGoModule rec {
pname = "bearer";
2024-02-29 17:20:04 +00:00
version = "1.40.1";
2023-05-20 11:17:49 +00:00
src = fetchFromGitHub {
owner = "bearer";
repo = "bearer";
rev = "refs/tags/v${version}";
2024-02-29 17:20:04 +00:00
hash = "sha256-yfgbkF7ANJyyy3qYNLOg85+MJ8SdHCZkXsOhH0vzy8o=";
2023-05-20 11:17:49 +00:00
};
2024-02-29 17:20:04 +00:00
vendorHash = "sha256-TKdZVNt98jrIzXekfxRXfxEfEhb2doWTTGojOLOcKzU=";
2023-05-20 11:17:49 +00:00
subPackages = [
"cmd/bearer"
];
ldflags = [
"-s"
"-w"
2023-05-29 18:05:21 +00:00
"-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}"
2023-05-20 11:17:49 +00:00
];
2023-05-29 18:07:30 +00:00
passthru.tests = {
version = testers.testVersion {
package = bearer;
command = "bearer version";
};
};
2023-05-20 11:17:49 +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}";
license = with licenses; [ elastic20 ];
2023-05-20 11:17:49 +00:00
maintainers = with maintainers; [ fab ];
};
}