btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ea / earlybird / package.nix
blob46b94e9d708ee81d472ec9f194ed63534d5fe828
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "earlybird";
8   version = "4.0.0";
10   src = fetchFromGitHub {
11     owner = "americanexpress";
12     repo = "earlybird";
13     rev = "v${version}";
14     hash = "sha256-guSm/ha4ICaOcoynvAwFeojE6ikaCykMcdfskD/ehTw=";
15   };
17   vendorHash = "sha256-39jXqCXAwg/C+9gEXiS1X58OD61nMNQifnhgVGEF6ck=";
19   ldflags = [ "-s" "-w" ];
21   meta = with lib; {
22     description = "Sensitive data detection tool capable of scanning source code repositories for passwords, key files, and more";
23     mainProgram = "earlybird";
24     homepage = "https://github.com/americanexpress/earlybird";
25     changelog = "https://github.com/americanexpress/earlybird/releases/tag/v${version}";
26     license = licenses.asl20;
27     maintainers = [ ];
28   };