Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "ddosify"; 5 version = "1.0.3"; 6 7 src = fetchFromGitHub { 8 owner = pname; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-SkKETcKlH6OF6+gLBq/6P7txcmMRxoXc1Mm005piCHc="; 12 }; 13 14 vendorHash = "sha256-cGhMhX+SEv9fejViLZrEwXg584o204OQ5iR6AkxKnXo="; 15 16 ldflags = [ 17 "-s" "-w" 18 "-X main.GitVersion=${version}" 19 "-X main.GitCommit=unknown" 20 "-X main.BuildDate=unknown" 21 ]; 22 23 # TestCreateHammerMultipartPayload error occurred - Get "https://upload.wikimedia.org/wikipedia/commons/b/bd/Test.svg" 24 doCheck = false; 25 26 doInstallCheck = true; 27 installCheckPhase = '' 28 $out/bin/ddosify -version | grep ${version} > /dev/null 29 ''; 30 31 meta = with lib; { 32 description = "High-performance load testing tool, written in Golang"; 33 homepage = "https://ddosify.com/"; 34 changelog = "https://github.com/ddosify/ddosify/releases/tag/v${version}"; 35 license = licenses.agpl3Plus; 36 maintainers = with maintainers; [ bryanasdev000 ]; 37 }; 38}