nixpkgs/pkgs/applications/misc/taskwarrior-tui/default.nix
Matthias Beyer b1fa4e7472
taskwarrior-tui: 0.25.1 -> 0.25.2
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-08-27 11:10:35 +02:00

37 lines
940 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "taskwarrior-tui";
version = "0.25.2";
src = fetchFromGitHub {
owner = "kdheepak";
repo = "taskwarrior-tui";
rev = "v${version}";
sha256 = "sha256-HC81GA/kTyppCDLo47tFU08veViGlwwi6U92CP+5X9c=";
};
cargoHash = "sha256-M+Kgq8iSHdzAoIqnqP1NV0LWt6AComsaSlX0aypEOeA=";
nativeBuildInputs = [ installShellFiles ];
# Because there's a test that requires terminal access
doCheck = false;
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";
license = with licenses; [ mit ];
maintainers = with maintainers; [ matthiasbeyer ];
};
}