From 8d0b23a5e4ab92baa505c1a76760c4d34bbd84f3 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 21 May 2023 10:10:53 -0400 Subject: [PATCH] bombardier: init at 1.2.6 https://github.com/codesenberg/bombardier --- pkgs/tools/networking/bombardier/default.nix | 46 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/tools/networking/bombardier/default.nix diff --git a/pkgs/tools/networking/bombardier/default.nix b/pkgs/tools/networking/bombardier/default.nix new file mode 100644 index 000000000000..56f179b22ca7 --- /dev/null +++ b/pkgs/tools/networking/bombardier/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c6bf4993f8a4..67f2dfd2c00b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6463,6 +6463,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;