croc: 10.1.1 -> 10.1.3 (#364662)
[NixPkgs.git] / pkgs / by-name / be / bearer / package.nix
blob2c2e8bff30edd277ab611ed123624aabcd6a2435
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   testers,
6   bearer,
7 }:
9 buildGoModule rec {
10   pname = "bearer";
11   version = "1.47.0";
13   src = fetchFromGitHub {
14     owner = "bearer";
15     repo = "bearer";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-yr5ik+DxOcW3UFK6KiPvheGlDdwSz2s7DKm2vAsSwG0=";
18   };
20   vendorHash = "sha256-A0zy5O2+afhn6jAfLd/k7wvL3z1PVI0e6bO39cnYrhM=";
22   subPackages = [ "cmd/bearer" ];
24   ldflags = [
25     "-s"
26     "-w"
27     "-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}"
28   ];
30   passthru.tests = {
31     version = testers.testVersion {
32       package = bearer;
33       command = "bearer version";
34     };
35   };
37   meta = with lib; {
38     description = "Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks";
39     homepage = "https://github.com/bearer/bearer";
40     changelog = "https://github.com/Bearer/bearer/releases/tag/v${version}";
41     license = with licenses; [ elastic20 ];
42     maintainers = with maintainers; [ fab ];
43   };