From c94a435e943054ac740fef0c42cb863fb1c9d4d6 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 23 Nov 2022 09:04:00 +0000 Subject: [PATCH] taskwarrior-tui: install completions and manpage --- pkgs/applications/misc/taskwarrior-tui/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/misc/taskwarrior-tui/default.nix b/pkgs/applications/misc/taskwarrior-tui/default.nix index 42044c6fb957..b3d99cf69977 100644 --- a/pkgs/applications/misc/taskwarrior-tui/default.nix +++ b/pkgs/applications/misc/taskwarrior-tui/default.nix @@ -1,6 +1,7 @@ { lib , rustPlatform , fetchFromGitHub +, installShellFiles }: rustPlatform.buildRustPackage rec { @@ -14,11 +15,18 @@ rustPlatform.buildRustPackage rec { sha256 = "sha256-D7+C02VlE42wWQSOkeTJVDS4rWnGB06RTZ7tzdpYmZw="; }; + nativeBuildInputs = [ installShellFiles ]; + # Because there's a test that requires terminal access doCheck = false; cargoSha256 = "sha256-b+bncWx7Z4GG2vwImRYeywc77THGMYVXlm4v/9YKCMI="; + postInstall = '' + installManPage docs/taskwarrior-tui.1 + installShellCompletion completions/taskwarrior-tui.{bash,fish} --zsh completions/_taskwarrior-tui + ''; + meta = with lib; { description = "A terminal user interface for taskwarrior "; homepage = "https://github.com/kdheepak/taskwarrior-tui";