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