nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 4a5c30794eb3cbeb421dcdf3e6aefbd0f1f16021
parent 2843b261c4d86a5c4c53741be8a063b5f4f66e52
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 30 Oct 2022 20:52:28 +0300

Add mqtt-benchmark

Diffstat:
Mpkgs/default.nix | 3+++
Apkgs/misc/mqtt-benchmark/default.nix | 23+++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -318,6 +318,9 @@ lib.makeScope newScope ( md2html = callPackage ./misc/md2html { }; miband4 = callPackage ./misc/miband4 { }; morse-talk = callPackage ./misc/morse-talk { }; + mqtt-benchmark = callPackage ./misc/mqtt-benchmark { + buildGoModule = pkgs.buildGo117Module; + }; musig = callPackage ./misc/musig { buildGoModule = pkgs.buildGo117Module; }; diff --git a/pkgs/misc/mqtt-benchmark/default.nix b/pkgs/misc/mqtt-benchmark/default.nix @@ -0,0 +1,23 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "mqtt-benchmark"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "krylovsk"; + repo = "mqtt-benchmark"; + rev = "v${version}"; + hash = "sha256-gejLDtJ1geO4eDBapHjXgpc+M2TRGKcv5YzybmIyQSs="; + }; + + vendorHash = "sha256-ZN5tNDIisbhMMOA2bVJnE96GPdZ54HXTneFQewwJmHI="; + + meta = with lib; { + description = "MQTT broker benchmarking tool"; + inherit (src.meta) homepage; + license = licenses.asl20; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}