2023-11-25 10:44:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-10-21 13:00:49 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ddosify";
|
2023-11-25 08:23:49 +00:00
|
|
|
version = "1.0.6";
|
2021-10-21 13:00:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-11-25 10:44:35 +00:00
|
|
|
owner = "ddosify";
|
|
|
|
repo = "ddosify";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-5K/qXtdlDC09dEjRwYvoh9SapGLNmvywDMiNdwZDDTQ=";
|
2021-10-21 13:00:49 +00:00
|
|
|
};
|
|
|
|
|
2023-11-25 08:23:49 +00:00
|
|
|
vendorHash = "sha256-Wg4JzA2aEwNBsDrkauFUb9AS38ITLBGex9QHzDcdpoM=";
|
2021-10-21 13:00:49 +00:00
|
|
|
|
|
|
|
ldflags = [
|
2023-11-25 10:44:35 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=main.GitVersion=${version}"
|
|
|
|
"-X=main.GitCommit=unknown"
|
|
|
|
"-X=main.BuildDate=unknown"
|
2021-10-21 13:00:49 +00:00
|
|
|
];
|
|
|
|
|
2021-12-29 08:17:11 +00:00
|
|
|
# TestCreateHammerMultipartPayload error occurred - Get "https://upload.wikimedia.org/wikipedia/commons/b/bd/Test.svg"
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-21 13:00:49 +00:00
|
|
|
doInstallCheck = true;
|
2023-11-25 10:44:35 +00:00
|
|
|
|
2021-10-21 13:00:49 +00:00
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/ddosify -version | grep ${version} > /dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "High-performance load testing tool, written in Golang";
|
|
|
|
homepage = "https://ddosify.com/";
|
|
|
|
changelog = "https://github.com/ddosify/ddosify/releases/tag/v${version}";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ bryanasdev000 ];
|
|
|
|
};
|
|
|
|
}
|