(address . guix-patches@gnu.org)(name . Stefan Reichör)(address . stefan@xsteve.at)
* gnu/packages/time.scm (tz): New variable.
---
gnu/packages/time.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Toggle diff (52 lines)
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index d6ebb59a1e..fbe7a8b5c1 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -19,6 +19,7 @@
;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org>
;;; Copyright © 2021 Ryan Prior <rprior@protonmail.com>
+;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -540,3 +541,37 @@ calls.")
from a starting point you provide. The user can pause and resume the
countdown from the text user interface.")
(license expat)))
+
+(define-public tz
+ (package
+ (name "tz")
+ (version "0.5")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/oz/tz")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1sixfbph5013c9ccx0xqkp9jskg7jr9y29nn9j85q1zmg5by221v"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/oz/tz"))
+ (native-inputs
+ `(("go-github-com-charmbracelet-bubbletea" ,go-github-com-charmbracelet-bubbletea)
+ ("go-github-com-containerd-console" ,go-github-com-containerd-console)
+ ("go-github-com-google-goterm" ,go-github-com-google-goterm)
+ ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
+ ("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth)
+ ("go-github-com-muesli-reflow-ansi" ,go-github-com-muesli-reflow-ansi)
+ ("go-github-com-muesli-reflow-truncate" ,go-github-com-muesli-reflow-truncate)
+ ("go-github-com-muesli-termenv" ,go-github-com-muesli-termenv)
+ ("go-golang-org-colorful" ,go-golang-org-colorful)
+ ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)))
+ (home-page "https://github.com/oz/tz")
+ (synopsis "Display time across a few selected time zones.")
+ (description
+ "tz is a cli tool that displays a given time in several time zones. Use
+the environment variable TZ_LIST to specify a list of time zones.")
+ (license gpl3)))
--
2.25.1