mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
38 lines
977 B
Nix
38 lines
977 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "taskwarrior-tui";
|
|
version = "0.25.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kdheepak";
|
|
repo = "taskwarrior-tui";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-M8tiEUPfP5EWfPp7i6r0lpHC5ZUsEYeEKVz5gUpe4+A=";
|
|
};
|
|
|
|
cargoHash = "sha256-B5peoyT/+miHXyoRGFLUv9qFzZZFsExrI46Zy0K7NL4=";
|
|
|
|
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 ];
|
|
mainProgram = "taskwarrior-tui";
|
|
};
|
|
}
|