mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
42 lines
1.1 KiB
Nix
42 lines
1.1 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";
|
|
};
|
|
}
|