nixpkgs/pkgs/tools/security/earlybird/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
783 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "earlybird";
version = "4.0.0";
src = fetchFromGitHub {
owner = "americanexpress";
repo = "earlybird";
rev = "v${version}";
hash = "sha256-guSm/ha4ICaOcoynvAwFeojE6ikaCykMcdfskD/ehTw=";
};
vendorHash = "sha256-39jXqCXAwg/C+9gEXiS1X58OD61nMNQifnhgVGEF6ck=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "A sensitive data detection tool capable of scanning source code repositories for passwords, key files, and more";
mainProgram = "earlybird";
homepage = "https://github.com/americanexpress/earlybird";
changelog = "https://github.com/americanexpress/earlybird/releases/tag/v${version}";
license = licenses.asl20;
maintainers = [ ];
};
}