2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-17 01:24:47 +00:00
nixpkgs/pkgs/by-name/be/bearer/package.nix

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

45 lines
1014 B
Nix
Raw Normal View History

2024-04-10 09:40:28 +00:00
{
lib,
buildGoModule,
fetchFromGitHub,
testers,
bearer,
2023-05-20 11:17:49 +00:00
}:
buildGoModule rec {
pname = "bearer";
2024-11-24 00:21:52 +00:00
version = "1.47.0";
2023-05-20 11:17:49 +00:00
src = fetchFromGitHub {
owner = "bearer";
repo = "bearer";
rev = "refs/tags/v${version}";
2024-11-24 00:21:52 +00:00
hash = "sha256-yr5ik+DxOcW3UFK6KiPvheGlDdwSz2s7DKm2vAsSwG0=";
2023-05-20 11:17:49 +00:00
};
2024-11-24 00:21:52 +00:00
vendorHash = "sha256-A0zy5O2+afhn6jAfLd/k7wvL3z1PVI0e6bO39cnYrhM=";
2023-05-20 11:17:49 +00:00
2024-04-10 09:40:28 +00:00
subPackages = [ "cmd/bearer" ];
2023-05-20 11:17:49 +00:00
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 ];
};
}