nixpkgs/pkgs/by-name/mq/mqttui/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
988 B
Nix
Raw Normal View History

2024-04-20 10:31:01 +00:00
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
2021-12-19 21:58:44 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "mqttui";
version = "0.21.0";
2021-12-19 21:58:44 +00:00
src = fetchFromGitHub {
owner = "EdJoPaTo";
2024-03-05 15:01:46 +00:00
repo = "mqttui";
2023-05-19 17:12:17 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-aIvT1js+xY1rauZYVCkl71JLfIDjIEGy3W8WdIaTyxY=";
2021-12-19 21:58:44 +00:00
};
2024-03-05 15:01:46 +00:00
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"ratatui-binary-data-widget-0.1.0" = "sha256-4/8ZZag7vpEXnh6wJvZkgGLrOQNJXsnek3gFG/F0+zY=";
};
};
postPatch = ''
ln -sf ${./Cargo.lock} Cargo.lock
'';
2021-12-19 21:58:44 +00:00
2024-03-05 15:07:08 +00:00
buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
2021-12-19 21:58:44 +00:00
meta = with lib; {
description = "Terminal client for MQTT";
homepage = "https://github.com/EdJoPaTo/mqttui";
2023-05-19 17:12:17 +00:00
changelog = "https://github.com/EdJoPaTo/mqttui/blob/v${version}/CHANGELOG.md";
2021-12-19 21:58:44 +00:00
license = licenses.gpl3Only;
2024-04-20 10:31:01 +00:00
maintainers = with maintainers; [
fab
sikmir
];
2024-02-11 02:19:15 +00:00
mainProgram = "mqttui";
2021-12-19 21:58:44 +00:00
};
}