nixpkgs/pkgs/by-name/ve/vegeta/package.nix

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

49 lines
1.2 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";
2024-08-08 06:42:29 +00:00
version = "12.12.0";
rev = "03ca49e9b419c106db29d687827c4c823d8b8ece";
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}";
2024-08-08 06:42:29 +00:00
hash = "sha256-nTtQ/BB5rU+0k4dPRCmukCRNI0iFTjHIJiSTN0cNR+Q=";
2020-01-31 09:00:50 +00:00
};
2024-08-08 06:42:29 +00:00
vendorHash = "sha256-0Ho1HYckFHaWEE6Ti3fIL/t0hBj5MnKOd4fOZx+LYiE=";
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 ];
2024-02-11 02:19:15 +00:00
mainProgram = "vegeta";
2020-01-31 09:00:50 +00:00
};
}