2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-06 16:14:23 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-11-23 09:04:00 +00:00
|
|
|
, installShellFiles
|
2021-01-06 16:14:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "taskwarrior-tui";
|
2022-11-23 09:03:26 +00:00
|
|
|
version = "0.23.7";
|
2021-01-06 16:14:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kdheepak";
|
|
|
|
repo = "taskwarrior-tui";
|
|
|
|
rev = "v${version}";
|
2022-11-23 09:03:26 +00:00
|
|
|
sha256 = "sha256-D7+C02VlE42wWQSOkeTJVDS4rWnGB06RTZ7tzdpYmZw=";
|
2021-01-06 16:14:23 +00:00
|
|
|
};
|
|
|
|
|
2022-11-23 09:04:00 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2021-01-06 16:14:23 +00:00
|
|
|
# Because there's a test that requires terminal access
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-11-23 09:03:26 +00:00
|
|
|
cargoSha256 = "sha256-b+bncWx7Z4GG2vwImRYeywc77THGMYVXlm4v/9YKCMI=";
|
2021-01-06 16:14:23 +00:00
|
|
|
|
2022-11-23 09:04:00 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage docs/taskwarrior-tui.1
|
|
|
|
installShellCompletion completions/taskwarrior-tui.{bash,fish} --zsh completions/_taskwarrior-tui
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-06 16:14:23 +00:00
|
|
|
description = "A terminal user interface for taskwarrior ";
|
|
|
|
homepage = "https://github.com/kdheepak/taskwarrior-tui";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
|
|
};
|
|
|
|
}
|