Skip to content

Commit

Permalink
Merge pull request NixOS#233239 from figsoda/bomb
Browse files Browse the repository at this point in the history
bombardier: init at 1.2.6
  • Loading branch information
Kranzes authored May 22, 2023
2 parents 317c4cf + 8d0b23a commit 1bcd660
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pkgs/tools/networking/bombardier/default.nix
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6491,6 +6491,8 @@ with pkgs;

bluetooth_battery = python3Packages.callPackage ../applications/misc/bluetooth_battery { };

bombardier = callPackage ../tools/networking/bombardier { };

calyx-vpn = libsForQt5.callPackage ../tools/networking/bitmask-vpn {
provider = "calyx";
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
Expand Down

0 comments on commit 1bcd660

Please sign in to comment.