nixpkgs/pkgs/tools/networking/vegeta/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

2022-06-12 13:34:28 +00:00
{ lib
, fetchFromGitHub
, buildGoModule
}:
2020-01-31 09:00:50 +00:00
2022-06-12 13:34:28 +00:00
buildGoModule rec {
2020-01-31 09:00:50 +00:00
pname = "vegeta";
version = "12.8.4";
2022-06-12 13:34:28 +00:00
rev = "e04d9c0df8177e8633bff4afe7b39c2f3a9e7dea";
2020-01-31 09:00:50 +00:00
src = fetchFromGitHub {
2022-06-12 13:34:28 +00:00
owner = "tsenart";
repo = "vegeta";
rev = "v${version}";
sha256 = "sha256-FAb7nf6jZju95YEZR1GjPnfbsA5M8NcIKQyc8cgEgWs=";
2020-01-31 09:00:50 +00:00
};
2022-06-12 13:34:28 +00:00
vendorSha256 = "sha256-v9Hu9eQJSmm4Glt49F7EN40rKjrg4acyll9Bfgey+Mw=";
2020-01-31 09:00:50 +00:00
2022-06-12 13:34:28 +00:00
subPackages = [ "." ];
ldflags = (lib.mapAttrsToList (n: v: "-X main.${n}=${v}") {
Version = version;
Commit = rev;
Date = "1970-01-01T00:00:00Z";
}) ++ [ "-s" "-w" "-extldflags '-static'" ];
2020-01-31 09:00:50 +00:00
meta = with lib; {
description = "Versatile HTTP load testing tool";
2022-06-12 13:34:28 +00:00
longDescription = ''
Vegeta is a versatile HTTP load testing tool built out of a need to drill
HTTP services with a constant request rate. It can be used both as a
command line utility and a library.
'';
2020-01-31 09:00:50 +00:00
homepage = "https://github.com/tsenart/vegeta/";
2022-06-12 13:34:28 +00:00
changelog = "https://github.com/tsenart/vegeta/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ mmahut ];
2020-01-31 09:00:50 +00:00
};
}