From 1a0cf57a540003a684b46bc8f93cd1229d480569 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 19 Dec 2021 22:58:44 +0100 Subject: [PATCH] mqttui: init at 0.13.0 --- pkgs/tools/networking/mqttui/default.nix | 29 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/networking/mqttui/default.nix diff --git a/pkgs/tools/networking/mqttui/default.nix b/pkgs/tools/networking/mqttui/default.nix new file mode 100644 index 000000000000..7945cd168d42 --- /dev/null +++ b/pkgs/tools/networking/mqttui/default.nix @@ -0,0 +1,29 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "mqttui"; + version = "0.13.0"; + + src = fetchFromGitHub { + owner = "EdJoPaTo"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-taGpVLO9K5VmthWadstQcujcLHTb3fhEWDxKGd3Pj+E="; + }; + + cargoSha256 = "sha256-aAMDl8GZ+XqA4uBiDm2eHQsNFiqCrMBO66X0ruEjpJg="; + + buildInputs = lib.optional stdenv.isDarwin Security; + + meta = with lib; { + description = "Terminal client for MQTT"; + homepage = "https://github.com/EdJoPaTo/mqttui"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5e9ca3a89163..184776a6b6a6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18800,6 +18800,10 @@ with pkgs; mqtt-bench = callPackage ../applications/misc/mqtt-bench {}; + mqttui = callPackage ../tools/networking/mqttui { + inherit (darwin.apple_sdk.frameworks) Security; + }; + msgpack = callPackage ../development/libraries/msgpack { }; msoffcrypto-tool = with python3.pkgs; toPythonApplication msoffcrypto-tool;