Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 versionCheckHook, 6}: 7 8buildGoModule (finalAttrs: { 9 pname = "pphack"; 10 version = "0.1.0"; 11 12 src = fetchFromGitHub { 13 owner = "edoardottt"; 14 repo = "pphack"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-SWMY+t8NzbUqAeLsqia5KAXXOjoMRMZVVa8YdTLcG5A="; 17 }; 18 19 vendorHash = "sha256-smJp3GDo1KOrEjEJnxtyrlHmb/L70QqhDWjCZ4U1qJs="; 20 21 nativeInstallCheckInputs = [ versionCheckHook ]; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 ]; 27 28 doInstallCheck = true; 29 30 meta = { 31 description = "Client-Side Prototype Pollution Scanner"; 32 homepage = "https://github.com/edoardottt/pphack"; 33 changelog = "https://github.com/edoardottt/pphack/releases/tag/${finalAttrs.src.tag}"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ fab ]; 36 mainProgram = "pphack"; 37 }; 38})