From 911b841b1d850e7d8b75b6279307d614ca9facbc Mon Sep 17 00:00:00 2001 From: Johan Larsson Date: Sat, 29 Nov 2025 22:59:19 +0100 Subject: [PATCH] tomat: enable completion and install man pages Update pkgs/by-name/to/tomat/package.nix Co-authored-by: Aleksana --- pkgs/by-name/to/tomat/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) 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";