mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-07 14:23:19 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
28 lines
670 B
Nix
28 lines
670 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "tasktimer";
|
|
version = "1.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "caarlos0";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-CAqOsxmJxDgQRMx8cN23TajHd6BNiCFraFvhf5kKnzc=";
|
|
};
|
|
|
|
vendorHash = "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";
|
|
};
|
|
}
|