mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
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";
|
|
};
|
|
}
|