2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "vegeta";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "12.11.1";
|
|
|
|
rev = "6fbe391628eeeae1adf39522a55078797e6e7f2e";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-06-26 10:26:21 +00:00
|
|
|
owner = "tsenart";
|
|
|
|
repo = "vegeta";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-09DowdlbCsBQsAuAqC2QyUYvZHz7QmttO8Q6KHQCqLo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-5MvcZLg+NDDsqlpVV2FhTiEhXUJHq7eaP7Pba3iIipo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +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-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Versatile HTTP load testing tool";
|
2022-06-26 10:26:21 +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-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/tsenart/vegeta/";
|
2022-06-26 10:26:21 +00:00
|
|
|
changelog = "https://github.com/tsenart/vegeta/releases/tag/${src.rev}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mmahut ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|