Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "mantra"; 8 version = "1.1"; 9 10 src = fetchFromGitHub { 11 owner = "MrEmpy"; 12 repo = "Mantra"; 13 rev = "refs/tags/v.${version}"; 14 hash = "sha256-wIFZgxl6qULDvdUeq4yiuc5dPDudKsYvVUewSL0ITNM="; 15 }; 16 17 vendorHash = null; 18 19 ldflags = [ 20 "-s" 21 "-w" 22 ]; 23 24 meta = with lib; { 25 description = "Tool used to hunt down API key leaks in JS files and pages"; 26 homepage = "https://github.com/MrEmpy/Mantra"; 27 changelog = "https://github.com/MrEmpy/Mantra/releases/tag/v.${version}"; 28 license = licenses.gpl3Only; 29 maintainers = with maintainers; [ fab ]; 30 }; 31}