2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-09 10:05:03 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-11-27 09:42:12 +00:00
|
|
|
, installShellFiles
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "taskwarrior-tui";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.26.3";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kdheepak";
|
|
|
|
repo = "taskwarrior-tui";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-8PFGlsm9B6qHRrY7YIPwknmGS+Peg5MWd0kMT173wIQ=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-Cd319GCvdh6S8OO2ylKs1H2+zO4Uq1tgNakghVD12BA=";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
# Because there's a test that requires terminal access
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage docs/taskwarrior-tui.1
|
|
|
|
installShellCompletion completions/taskwarrior-tui.{bash,fish} --zsh completions/_taskwarrior-tui
|
|
|
|
'';
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Terminal user interface for taskwarrior ";
|
2021-01-09 10:05:03 +00:00
|
|
|
homepage = "https://github.com/kdheepak/taskwarrior-tui";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "taskwarrior-tui";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|