From 283d2c569c8b3e4bf8c74c0dff3d2e220fe9344d Mon Sep 17 00:00:00 2001 From: Nurali Aslanbekov Date: Sun, 6 Apr 2025 15:24:55 +0500 Subject: [PATCH] hours: init at 0.5.0 --- pkgs/by-name/ho/hours/package.nix | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ho/hours/package.nix diff --git a/pkgs/by-name/ho/hours/package.nix b/pkgs/by-name/ho/hours/package.nix new file mode 100644 index 000000000000..48c2ab726889 --- /dev/null +++ b/pkgs/by-name/ho/hours/package.nix @@ -0,0 +1,34 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + nix-update-script, + stdenv, +}: + +buildGoModule (finalAttrs: { + pname = "hours"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "dhth"; + repo = "hours"; + tag = "v${finalAttrs.version}"; + hash = "sha256-B9M02THTCrr7ylbbflpkpTFMuoIwV2O0PQKOKbyxYPg="; + }; + + vendorHash = "sha256-5lhn0iTLmXUsaedvtyaL3qWLosmQaQVq5StMDl7pXXI="; + + doCheck = !stdenv.hostPlatform.isDarwin; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "No-frills time tracking toolkit for command line nerds"; + homepage = "https://github.com/dhth/hours"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.ilarvne ]; + platforms = lib.platforms.unix; + mainProgram = "hours"; + }; +})