Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "tasktimer"; 9 version = "1.11.0"; 10 11 src = fetchFromGitHub { 12 owner = "caarlos0"; 13 repo = "tasktimer"; 14 rev = "v${version}"; 15 sha256 = "sha256-CAqOsxmJxDgQRMx8cN23TajHd6BNiCFraFvhf5kKnzc="; 16 }; 17 18 vendorHash = "sha256-Tk0yI/WFr0FV0AxJDStlP3XLem3v78ueuXyadhrLAog="; 19 20 postInstall = '' 21 mv $out/bin/tasktimer $out/bin/tt 22 ''; 23 24 meta = with lib; { 25 description = "Task Timer (tt) is a dead simple TUI task timer"; 26 homepage = "https://github.com/caarlos0/tasktimer"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ 29 abbe 30 caarlos0 31 ]; 32 mainProgram = "tt"; 33 }; 34}