diff --git a/pkgs/development/tools/ddosify/default.nix b/pkgs/development/tools/ddosify/default.nix index a9d5205f8b46..b1e659ec8d6d 100644 --- a/pkgs/development/tools/ddosify/default.nix +++ b/pkgs/development/tools/ddosify/default.nix @@ -1,29 +1,34 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib +, buildGoModule +, fetchFromGitHub +}: buildGoModule rec { pname = "ddosify"; - version = "1.0.5"; + version = "1.0.6"; src = fetchFromGitHub { - owner = pname; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-oCbEAEBZJsMnnVu2N6eiQiaywovWmGUSVpUyWyS7TpM="; + owner = "ddosify"; + repo = "ddosify"; + rev = "refs/tags/v${version}"; + hash = "sha256-5K/qXtdlDC09dEjRwYvoh9SapGLNmvywDMiNdwZDDTQ="; }; - vendorHash = "sha256-cGhMhX+SEv9fejViLZrEwXg584o204OQ5iR6AkxKnXo="; + vendorHash = "sha256-Wg4JzA2aEwNBsDrkauFUb9AS38ITLBGex9QHzDcdpoM="; ldflags = [ - "-s" "-w" - "-X main.GitVersion=${version}" - "-X main.GitCommit=unknown" - "-X main.BuildDate=unknown" + "-s" + "-w" + "-X=main.GitVersion=${version}" + "-X=main.GitCommit=unknown" + "-X=main.BuildDate=unknown" ]; # TestCreateHammerMultipartPayload error occurred - Get "https://upload.wikimedia.org/wikipedia/commons/b/bd/Test.svg" doCheck = false; doInstallCheck = true; + installCheckPhase = '' $out/bin/ddosify -version | grep ${version} > /dev/null '';