biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / ddosify / default.nix
blob0f47035721e6808916dac4700fbd282ee56980db
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "ddosify";
8   version = "1.0.6";
10   src = fetchFromGitHub {
11     owner = "ddosify";
12     repo = "ddosify";
13     rev = "refs/tags/v${version}";
14     hash = "sha256-5K/qXtdlDC09dEjRwYvoh9SapGLNmvywDMiNdwZDDTQ=";
15   };
17   vendorHash = "sha256-Wg4JzA2aEwNBsDrkauFUb9AS38ITLBGex9QHzDcdpoM=";
19   ldflags = [
20     "-s"
21     "-w"
22     "-X=main.GitVersion=${version}"
23     "-X=main.GitCommit=unknown"
24     "-X=main.BuildDate=unknown"
25   ];
27   # TestCreateHammerMultipartPayload error occurred - Get "https://upload.wikimedia.org/wikipedia/commons/b/bd/Test.svg"
28   doCheck = false;
30   doInstallCheck = true;
32   installCheckPhase = ''
33     $out/bin/ddosify -version | grep ${version} > /dev/null
34   '';
36   meta = with lib; {
37     description = "High-performance load testing tool, written in Golang";
38     mainProgram = "ddosify";
39     homepage = "https://ddosify.com/";
40     changelog = "https://github.com/ddosify/ddosify/releases/tag/v${version}";
41     license = licenses.agpl3Plus;
42     maintainers = with maintainers; [ bryanasdev000 ];
43   };