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

45 lines
1.0 KiB
Nix
Raw Normal View History

2025-02-26 19:22:46 +01:00
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "tray-tui";
2025-03-02 22:51:40 +01:00
version = "0.2.0";
2025-02-26 19:22:46 +01:00
src = fetchFromGitHub {
owner = "Levizor";
repo = "tray-tui";
tag = version;
2025-03-02 22:51:40 +01:00
hash = "sha256-yCA0qN51xrfhHOL34prn6T4qZ7PsLHX1l2yd4o6oGCo=";
2025-02-26 19:22:46 +01:00
};
useFetchCargoVendor = true;
2025-03-02 22:51:40 +01:00
cargoHash = "sha256-m6m9zZ/H1FpEDTh1M94ZwxLht1Of13xNqM7T3igjc6M=";
2025-02-26 19:22:46 +01:00
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;
};
}