about summary refs log tree commit diff
path: root/pkgs/applications/misc/tasktimer/default.nix
blob: 34ba140331d12e6a9ae31bd2cf1c17db8b02ff75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "tasktimer";
  version = "1.11.0";

  src = fetchFromGitHub {
    owner = "caarlos0";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-CAqOsxmJxDgQRMx8cN23TajHd6BNiCFraFvhf5kKnzc=";
  };

  vendorSha256 = "sha256-Tk0yI/WFr0FV0AxJDStlP3XLem3v78ueuXyadhrLAog=";

  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;
    maintainers = with maintainers; [ abbe caarlos0 ];
    mainProgram = "tt";
  };
}