nixpkgs-suyu/pkgs/applications/misc/tasktimer/default.nix

28 lines
662 B
Nix
Raw Normal View History

2022-02-03 00:23:53 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tasktimer";
version = "1.9.4";
src = fetchFromGitHub {
owner = "caarlos0";
repo = pname;
rev = "v${version}";
sha256 = "sha256-M88JzcK9HwHeWbQ0McbCF1rIEiKnwh08oEoRck4A/Ho=";
};
vendorSha256 = "sha256-5OSAa7tGPtGyx0bet82FRoIozhhlFtakbPt6PtCTHd0=";
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 ];
mainProgram = "tt";
};
}