2022-08-21 13:32:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tasktimer";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "1.11.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "caarlos0";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-CAqOsxmJxDgQRMx8cN23TajHd6BNiCFraFvhf5kKnzc=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
vendorSha256 = "sha256-Tk0yI/WFr0FV0AxJDStlP3XLem3v78ueuXyadhrLAog=";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/tasktimer $out/bin/tt
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Task Timer (tt) is a dead simple TUI task timer";
|
|
|
|
homepage = "https://github.com/caarlos0/tasktimer";
|
|
|
|
license = licenses.mit;
|
2023-03-27 19:17:25 +00:00
|
|
|
maintainers = with maintainers; [ abbe caarlos0 ];
|
2022-08-21 13:32:41 +00:00
|
|
|
mainProgram = "tt";
|
|
|
|
};
|
|
|
|
}
|