Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 738 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule (finalAttrs: { 8 pname = "httptap"; 9 version = "0.1.1"; 10 11 src = fetchFromGitHub { 12 owner = "monasticacademy"; 13 repo = "httptap"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-Cn5u6q0r06SJp4uhF7j5K6yNZv8Q3WNxlDd5Vxmshhw="; 16 }; 17 18 vendorHash = "sha256-yTtUt+kfDwN6W4caHCAYFjpYzhaqZUbLe+Nz7JKAXu8="; 19 20 env.CGO_ENABLED = 0; 21 22 subPackages = [ "." ]; 23 24 ldflags = [ 25 "-s" 26 "-w" 27 ]; 28 29 meta = { 30 description = "View HTTP/HTTPS requests made by any Linux program"; 31 homepage = "https://github.com/monasticacademy/httptap"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ jpetrucciani ]; 34 mainProgram = "httptap"; 35 }; 36})