Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / bearer / default.nix
blob3aa78a18ecd96190f72027c0baf37db28d8d7313
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , testers
5 , bearer
6 }:
8 buildGoModule rec {
9   pname = "bearer";
10   version = "1.29.0";
12   src = fetchFromGitHub {
13     owner = "bearer";
14     repo = "bearer";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-18kXDdkwT0bINpwQ5sG+ic0ZFJS/vBMidzo67/C/fbM=";
17   };
19   vendorHash = "sha256-UbXKMeia6j5xARzO8GjRiDn6GGYz7gjEIdP8ylvJGT4=";
21   subPackages = [
22     "cmd/bearer"
23   ];
25   ldflags = [
26     "-s"
27     "-w"
28     "-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}"
29   ];
31   passthru.tests = {
32     version = testers.testVersion {
33       package = bearer;
34       command = "bearer version";
35     };
36   };
38   meta = with lib; {
39     description = "Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks";
40     homepage = "https://github.com/bearer/bearer";
41     changelog = "https://github.com/Bearer/bearer/releases/tag/v${version}";
42     license = with licenses; [ elastic20 ];
43     maintainers = with maintainers; [ fab ];
44   };