biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / taskwarrior-tui / default.nix
blobf313d3d1f0ffe2cb25586740633f7341d242af41
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , installShellFiles
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "taskwarrior-tui";
9   version = "0.26.3";
11   src = fetchFromGitHub {
12     owner = "kdheepak";
13     repo = "taskwarrior-tui";
14     rev = "v${version}";
15     sha256 = "sha256-8PFGlsm9B6qHRrY7YIPwknmGS+Peg5MWd0kMT173wIQ=";
16   };
18   cargoHash = "sha256-Cd319GCvdh6S8OO2ylKs1H2+zO4Uq1tgNakghVD12BA=";
20   nativeBuildInputs = [ installShellFiles ];
22   # Because there's a test that requires terminal access
23   doCheck = false;
25   postInstall = ''
26     installManPage docs/taskwarrior-tui.1
27     installShellCompletion completions/taskwarrior-tui.{bash,fish} --zsh completions/_taskwarrior-tui
28   '';
30   meta = with lib; {
31     description = "Terminal user interface for taskwarrior";
32     homepage = "https://github.com/kdheepak/taskwarrior-tui";
33     license = with licenses; [ mit ];
34     maintainers = with maintainers; [ matthiasbeyer ];
35     mainProgram = "taskwarrior-tui";
36   };