diff --git a/pkgs/by-name/to/tomat/package.nix b/pkgs/by-name/to/tomat/package.nix index 5cf6c557f983..5dd57ae11029 100644 --- a/pkgs/by-name/to/tomat/package.nix +++ b/pkgs/by-name/to/tomat/package.nix @@ -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";