diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/mq/mqttui/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/mq/mqttui/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/mq/mqttui/package.nix b/nixpkgs/pkgs/by-name/mq/mqttui/package.nix new file mode 100644 index 000000000000..6c7ca4cb4629 --- /dev/null +++ b/nixpkgs/pkgs/by-name/mq/mqttui/package.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "mqttui"; + version = "0.20.0"; + + src = fetchFromGitHub { + owner = "EdJoPaTo"; + repo = "mqttui"; + rev = "refs/tags/v${version}"; + hash = "sha256-NfRPuZFZMZl1ulEGD5oQkS25oJdBVyLiN3QCQWrDej8="; + }; + + cargoLock = { + lockFile = ./Cargo.lock; + outputHashes = { + "ratatui-binary-data-widget-0.1.0" = "sha256-4/8ZZag7vpEXnh6wJvZkgGLrOQNJXsnek3gFG/F0+zY="; + }; + }; + + postPatch = '' + ln -sf ${./Cargo.lock} Cargo.lock + ''; + + buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; + + meta = with lib; { + description = "Terminal client for MQTT"; + homepage = "https://github.com/EdJoPaTo/mqttui"; + changelog = "https://github.com/EdJoPaTo/mqttui/blob/v${version}/CHANGELOG.md"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab sikmir ]; + mainProgram = "mqttui"; + }; +} |