Unverified Commit 59bf672c authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

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

parents e43cf7b2 911b841b
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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";