Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "wprecon"; 8 version = "2.4.5"; 9 10 src = fetchFromGitHub { 11 owner = "blackbinn"; 12 repo = pname; 13 rev = version; 14 hash = "sha256-23zJD3Nnkeko+J2FjPq5RA5dIjORMXvwt3wtAYiVlQs="; 15 }; 16 17 vendorSha256 = "sha256-FYdsLcW6FYxSgixZ5US9cBPABOAVwidC3ejUNbs1lbA="; 18 19 postFixup = '' 20 # Rename binary 21 mv $out/bin/cli $out/bin/${pname} 22 ''; 23 24 meta = with lib; { 25 description = "WordPress vulnerability recognition tool"; 26 homepage = "https://github.com/blackbinn/wprecon"; 27 # License Zero Noncommercial Public License 2.0.1 28 # https://github.com/blackbinn/wprecon/blob/master/LICENSE 29 license = with licenses; [ unfree ]; 30 maintainers = with maintainers; [ fab ]; 31 }; 32}