tomat: enable completion and install man pages (#466400)

This commit is contained in:
Aleksana
2025-11-30 10:28:31 +00:00
committed by GitHub
+11
View File
@@ -2,6 +2,7 @@
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
pkg-config,
alsa-lib,
}:
@@ -21,6 +22,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [
@@ -34,6 +36,15 @@ rustPlatform.buildRustPackage rec {
"--skip=integration::"
];
postInstall = ''
installShellCompletion --cmd tomat \
--bash target/completions/tomat.bash \
--fish target/completions/tomat.fish \
--zsh target/completions/_tomat
installManPage target/man/*
'';
meta = {
description = "Pomodoro timer for status bars";
homepage = "https://github.com/jolars/tomat";