2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, fetchpatch }:
|
2017-09-20 18:37:19 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mqtt-bench";
|
2017-09-20 18:37:19 +02:00
|
|
|
version = "0.3.0";
|
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/takanorig/mqtt-bench";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "takanorig";
|
|
|
|
repo = "mqtt-bench";
|
|
|
|
sha256 = "03b9ak2j303iwq6abd7j10f2cs2ianwnbflwmyx9g96i7zd74f5m";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/takanorig/mqtt-bench/pull/13.patch";
|
|
|
|
name = "mqtt-paho-changes.patch";
|
|
|
|
sha256 = "17c8ajrp5dmbsasj6njxrlhy0x08b65fignzm3yccqbhb4ijcvha";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-09-20 18:37:19 +02:00
|
|
|
description = "Mosquitto benchmark tool";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/takanorig/mqtt-bench";
|
2017-09-20 18:37:19 +02:00
|
|
|
maintainers = with maintainers; [ disassembler ];
|
|
|
|
};
|
|
|
|
}
|