about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/mantra/default.nix
blob: 7453926a8bd357c8ebb92b81c7ed1e96f30e262a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "mantra";
  version = "1.1";

  src = fetchFromGitHub {
    owner = "MrEmpy";
    repo = "Mantra";
    rev = "refs/tags/v.${version}";
    hash = "sha256-wIFZgxl6qULDvdUeq4yiuc5dPDudKsYvVUewSL0ITNM=";
  };

  vendorHash = null;

  ldflags = [
    "-s"
    "-w"
  ];

  meta = with lib; {
    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 = licenses.gpl3Only;
    maintainers = with maintainers; [ fab ];
  };
}