depot/pkgs/tools/networking/bombardier/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

47 lines
980 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, bombardier
}:
buildGoModule rec {
pname = "bombardier";
version = "1.2.6";
src = fetchFromGitHub {
owner = "codesenberg";
repo = "bombardier";
rev = "v${version}";
hash = "sha256-sJ5+nxfyWSN6dFlA4INaqa3UHTY7huYkZhaTidMJFAs=";
};
vendorHash = "sha256-SxW/87l1w86H5cxEhiF/Fj8SxJ/uAfhtc7I1DVvIilk=";
subPackages = [
"."
];
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
__darwinAllowLocalNetworking = true;
passthru.tests = {
version = testers.testVersion {
package = bombardier;
};
};
meta = with lib; {
description = "Fast cross-platform HTTP benchmarking tool written in Go";
homepage = "https://github.com/codesenberg/bombardier";
changelog = "https://github.com/codesenberg/bombardier/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "bombardier";
};
}