nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 36 lines 956 B view raw
1{ 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6}: 7 8buildGoModule rec { 9 pname = "http-scanner"; 10 version = "1.0.1"; 11 12 src = fetchFromGitHub { 13 owner = "aymaneallaoui"; 14 repo = "kafka-http-scanner"; 15 tag = version; 16 hash = "sha256-+8UpdNRuu0nTYiBBS+yiVwDEtC/KpEeyPCEeJvsjxfs="; 17 }; 18 19 vendorHash = "sha256-Nvp9Qd1lz6/4fTgvqpInk+QhKYr/Fcunw53WERBpT8Q="; 20 21 ldflags = [ 22 "-s" 23 "-w" 24 "-X=github.com/aymaneallaoui/kafka-http-scanner/pkg/utils.Version=${version}" 25 ]; 26 27 meta = { 28 description = "HTTP security vulnerability scanner that detects a wide range of web application vulnerabilities"; 29 homepage = "https://github.com/aymaneallaoui/kafka-http-scanner"; 30 changelog = "https://github.com/aymaneallaoui/kafka-http-scanner/releases/tag/${src.tag}"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ fab ]; 33 mainProgram = "http-scanner"; 34 broken = stdenv.hostPlatform.isDarwin; 35 }; 36}