tomat: enable completion and install man pages (#466400)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user