Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "vegeta";
|
|
version = "12.12.0";
|
|
rev = "03ca49e9b419c106db29d687827c4c823d8b8ece";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tsenart";
|
|
repo = "vegeta";
|
|
rev = "v${version}";
|
|
hash = "sha256-nTtQ/BB5rU+0k4dPRCmukCRNI0iFTjHIJiSTN0cNR+Q=";
|
|
};
|
|
|
|
vendorHash = "sha256-0Ho1HYckFHaWEE6Ti3fIL/t0hBj5MnKOd4fOZx+LYiE=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
ldflags =
|
|
(lib.mapAttrsToList (n: v: "-X main.${n}=${v}") {
|
|
Version = version;
|
|
Commit = rev;
|
|
Date = "1970-01-01T00:00:00Z";
|
|
})
|
|
++ [
|
|
"-s"
|
|
"-w"
|
|
"-extldflags '-static'"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Versatile HTTP load testing tool";
|
|
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.
|
|
'';
|
|
homepage = "https://github.com/tsenart/vegeta/";
|
|
changelog = "https://github.com/tsenart/vegeta/releases/tag/${src.rev}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mmahut ];
|
|
mainProgram = "vegeta";
|
|
};
|
|
}
|