nixpkgs/pkgs/by-name/ma/mantra/package.nix
2025-08-07 01:35:04 +00:00

34 lines
675 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "mantra";
version = "3.1";
src = fetchFromGitHub {
owner = "MrEmpy";
repo = "Mantra";
tag = "v${version}";
hash = "sha256-DnErXuMbCRK3WxhdyPj0dOUtGnCcmynPk/hYmOsOKVU=";
};
vendorHash = null;
ldflags = [
"-s"
"-w"
];
meta = {
description = "Tool used to hunt down API key leaks in JS files and pages";
homepage = "https://github.com/MrEmpy/Mantra";
changelog = "https://github.com/MrEmpy/Mantra/releases/tag/v${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "mantra";
};
}