tray-tui: init at 0.1.0 (#385338)

This commit is contained in:
Donovan Glover
2025-02-28 17:33:25 +00:00
committed by GitHub
+44
View File
@@ -0,0 +1,44 @@
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "tray-tui";
version = "0.1.0";
src = fetchFromGitHub {
owner = "Levizor";
repo = "tray-tui";
tag = version;
hash = "sha256-N/ECG8J1wVoMevj3sDHiZiXIWmb6gKQFUfK0BiNHICM=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-COz4tY6VwjpwxLNe7JIs8CBXlQyQIaDhMQkeZRKk5Zs=";
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installShellCompletion --cmd tray-tui \
--bash <($out/bin/tray-tui --completions bash) \
--zsh <($out/bin/tray-tui --completions zsh) \
--fish <($out/bin/tray-tui --completions fish)
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "System tray in your terminal";
homepage = "https://github.com/Levizor/tray-tui";
license = lib.licenses.mit;
mainProgram = "tray-tui";
maintainers = with lib.maintainers; [ Levizor ];
platforms = lib.platforms.linux;
};
}