Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "go-exploitdb"; 8 version = "0.4.5"; 9 10 src = fetchFromGitHub { 11 owner = "vulsio"; 12 repo = "go-exploitdb"; 13 rev = "refs/tags/v${version}"; 14 hash = "sha256-iBOpgeL/cLoQufla0MpQs/0icRWUj1HngnAwOcKLSsQ="; 15 }; 16 17 vendorHash = "sha256-e+E8qcc5sRlb9clOFUrOzVwJlp3AFnZ6/lNAxaBe+hQ="; 18 19 ldflags = [ 20 "-s" 21 "-w" 22 "-X=github.com/vulsio/go-exploitdb/config.Version=${version}" 23 ]; 24 25 meta = with lib; { 26 description = "Tool for searching Exploits from Exploit Databases, etc"; 27 homepage = "https://github.com/vulsio/go-exploitdb"; 28 changelog = "https://github.com/vulsio/go-exploitdb/releases/tag/v${version}"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ fab ]; 31 }; 32}