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 12:17:49 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
2023-05-29 19:07:30 +01:00
, testers
, bearer
2023-05-20 12:17:49 +01:00
}:
buildGoModule rec {
pname = "bearer";
2024-01-18 21:49:05 +00:00
version = "1.35.0";
2023-05-20 12:17:49 +01:00
src = fetchFromGitHub {
owner = "bearer";
repo = "bearer";
rev = "refs/tags/v${version}";
2024-01-18 21:49:05 +00:00
hash = "sha256-JvmuJ3NNmjL69UGV/r5XOXqbznD0vA4CnhLWx05b3uY=";
2023-05-20 12:17:49 +01:00
};
2024-01-18 21:49:05 +00:00
vendorHash = "sha256-4oRZLZv4TsdHozGJicLIxKDl1zenwjj4SbbpdVI02xI=";
2023-05-20 12:17:49 +01:00
subPackages = [
"cmd/bearer"
];
ldflags = [
"-s"
"-w"
2023-05-29 19:05:21 +01:00
"-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}"
2023-05-20 12:17:49 +01:00
];
2023-05-29 19:07:30 +01:00
passthru.tests = {
version = testers.testVersion {
package = bearer;
command = "bearer version";
};
};
2023-05-20 12:17:49 +01: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 12:17:49 +01:00
maintainers = with maintainers; [ fab ];
};
}