forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#233239 from figsoda/bomb
bombardier: init at 1.2.6
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ 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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters