From b7bc587ff822d63687c73dd1b2042278108cd1db Mon Sep 17 00:00:00 2001 From: "Bryan A. S" Date: Thu, 21 Oct 2021 10:00:49 -0300 Subject: [PATCH] ddosify: init at v0.4.1 --- pkgs/development/tools/ddosify/default.nix | 34 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/tools/ddosify/default.nix diff --git a/pkgs/development/tools/ddosify/default.nix b/pkgs/development/tools/ddosify/default.nix new file mode 100644 index 00000000000..868d3965c66 --- /dev/null +++ b/pkgs/development/tools/ddosify/default.nix @@ -0,0 +1,34 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "ddosify"; + version = "0.4.1"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-z7jYnEZSHh/Omg5DMNFzuPhV1d8lZSy8I+8tM86O43s="; + }; + + vendorSha256 = "sha256-VWWik7oovVJq0J/tj/2Mm5QtvRkJLtMROJhRC2JFZdw="; + + # triggers a different set of tests that seems to be interactive and fail (no url target defined) + ldflags = [ + "-s -w" + "-X main.GitVersion=${version}" + ]; + + doInstallCheck = true; + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9752efd364a..faff0a285f0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2586,6 +2586,8 @@ with pkgs; ddate = callPackage ../tools/misc/ddate { }; + ddosify = callPackage ../development/tools/ddosify { }; + dduper = callPackage ../tools/filesystems/dduper { }; dedup = callPackage ../tools/backup/dedup { };