{ lib , stdenv , fetchFromGitHub , rustPlatform , Security }: rustPlatform.buildRustPackage rec { pname = "mqttui"; version = "0.16.2"; src = fetchFromGitHub { owner = "EdJoPaTo"; repo = pname; rev = "v${version}"; sha256 = "sha256-u2KuB0cw0xCAc5uRgHNsQknTfLwQmO9CZjSJTdycEnc="; }; cargoSha256 = "sha256-asJvunklc0zcrkgirC6wznwKNKLFQ6sN/B1GukI/NCo="; 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 ]; }; }