sharlatan pushed a commit to branch go-team
in repository guix.
commit e04fef9ca8df48f020bedfa8acec6c36fb855896
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Nov 24 21:38:31 2024 +0000
gnu: go-github-com-gdamore-tcell: Move to golang-xyz.
* gnu/packages/golang.scm (go-github-com-gdamore-tcell,
go-github-com-gdamore-tcell-v2, go-github-com-delthas-tcell-v2): Move
from here ...
* gnu/packages/golang-xyz.scm: ... to here.
* gnu/packages/games.scm: Add golang-xyz module.
Change-Id: I47dc5ef691bbb9732a1e7e068c74aeaafb07b235
---
gnu/packages/games.scm | 1 +
gnu/packages/golang-xyz.scm | 74 +++++++++++++++++++++++++++++++++++++++++++++
gnu/packages/golang.scm | 72 -------------------------------------------
3 files changed, 75 insertions(+), 72 deletions(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 4f4968b241..4eab3ab4c5 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -157,6 +157,7 @@
#:use-module (gnu packages gnuzilla)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
+ #:use-module (gnu packages golang-xyz)
#:use-module (gnu packages gperf)
#:use-module (gnu packages graphics)
#:use-module (gnu packages graphviz)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index dc4e5d77cc..300285c32d 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -19,6 +19,7 @@
;;; Copyright © 2021 Collin J. Doering <[email protected]>
;;; Copyright © 2021 Guillaume Le Vaillant <[email protected]>
;;; Copyright © 2021 Guix Together <[email protected]>
+;;; Copyright © 2021 Maxim Cournoyer <[email protected]>
;;; Copyright © 2021 Raghav Gururajan <[email protected]>
;;; Copyright © 2021 Ramana Radhakrishnan <[email protected]>
;;; Copyright © 2021 Ricardo Wurmus <[email protected]>
@@ -3287,6 +3288,79 @@ Differentiation between text and binary files}.
@end itemize")
(license license:expat)))
+(define-public go-github-com-gdamore-tcell
+ (package
+ (name "go-github-com-gdamore-tcell")
+ (version "1.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gdamore/tcell")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "178h7kj4zb8lcw84nbqanapnxrgvhq4111xw4fj6m56y46anlzwg"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/gdamore/tcell"))
+ (inputs
+ (list go-github-com-gdamore-encoding
+ go-github-com-mattn-go-runewidth
+ go-github-com-lucasb-eyer-go-colorful
+ go-golang-org-x-sys
+ go-golang-org-x-text))
+ (home-page "https://github.com/gdamore/tcell")
+ (synopsis "Provide a cell-based view for text terminals")
+ (description
+ "This package includes a full parser and expander for terminfo
+capability strings to avoid hard-coding escape strings for formatting. It
+also favors portability, and includes support for all POSIX systems.")
+ (license license:asl2.0)))
+
+(define-public go-github-com-gdamore-tcell-v2
+ (package
+ (inherit go-github-com-gdamore-tcell)
+ (name "go-github-com-gdamore-tcell-v2")
+ (version "2.7.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gdamore/tcell")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "05b22sgyf8lnwjddxlfvlj7i8b67gnidhbnz86vvx8fddggpa5nd"))))
+ (arguments
+ (list
+ #:import-path "github.com/gdamore/tcell/v2"))
+ (propagated-inputs
+ (modify-inputs (package-inputs go-github-com-gdamore-tcell)
+ (prepend go-golang-org-x-term go-golang-org-x-sys)))))
+
+(define-public go-github-com-delthas-tcell-v2
+ ;; TODO This variant allows upgrading senpai, and looks to be unnecessary in
+ ;; the next release of senpai
+ (hidden-package
+ (package
+ (inherit go-github-com-gdamore-tcell)
+ (name "go-github-com-delthas-tcell")
+ (version "2.4.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/delthas/tcell")
+ (commit "837a7d7")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "05zr73q38dawl7hr6g7v4pkyv6mqr0zp2l9qsgn7xmf1p9q4bn7j"))))
+ (propagated-inputs
+ (modify-inputs (package-inputs go-github-com-gdamore-tcell)
+ (prepend go-golang-org-x-term go-golang-org-x-sys))))))
+
(define-public go-github-com-go-git-go-billy-v5
(package
(name "go-github-com-go-git-go-billy-v5")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4c567eed3e..fd5f42f5c0 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4481,78 +4481,6 @@ encoding in Go.")
over strings.")
(license license:expat)))
-(define-public go-github-com-gdamore-tcell
- (package
- (name "go-github-com-gdamore-tcell")
- (version "1.4.0")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/gdamore/tcell")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "178h7kj4zb8lcw84nbqanapnxrgvhq4111xw4fj6m56y46anlzwg"))))
- (build-system go-build-system)
- (arguments
- `(#:import-path "github.com/gdamore/tcell"))
- (inputs
- (list go-github-com-mattn-go-runewidth
- go-github-com-lucasb-eyer-go-colorful
- go-golang-org-x-text
- go-golang-org-x-sys
- go-github-com-gdamore-encoding))
- (home-page "https://github.com/gdamore/tcell")
- (synopsis "Provide a cell-based view for text terminals")
- (description "This package includes a full parser and expander for
-terminfo capability strings to avoid hard-coding escape strings for
-formatting. It also favors portability, and includes support for all POSIX
-systems.")
- (license license:asl2.0)))
-
-(define-public go-github-com-gdamore-tcell-v2
- (package
- (inherit go-github-com-gdamore-tcell)
- (name "go-github-com-gdamore-tcell-v2")
- (version "2.7.4")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/gdamore/tcell")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "05b22sgyf8lnwjddxlfvlj7i8b67gnidhbnz86vvx8fddggpa5nd"))))
- (arguments
- (list #:import-path "github.com/gdamore/tcell/v2"))
- (propagated-inputs
- (modify-inputs (package-inputs go-github-com-gdamore-tcell)
- (prepend go-golang-org-x-term go-golang-org-x-sys)))))
-
-(define-public go-github-com-delthas-tcell-v2
- ;; TODO This variant allows upgrading senpai, and looks to be unnecessary in
- ;; the next release of senpai
- (hidden-package
- (package
- (inherit go-github-com-gdamore-tcell)
- (name "go-github-com-delthas-tcell")
- (version "2.4.1")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/delthas/tcell")
- (commit "837a7d7")))
- (file-name (git-file-name name version))
- (sha256
- (base32 "05zr73q38dawl7hr6g7v4pkyv6mqr0zp2l9qsgn7xmf1p9q4bn7j"))))
- (propagated-inputs (modify-inputs (package-inputs
- go-github-com-gdamore-tcell)
- (prepend go-golang-org-x-term
go-golang-org-x-sys))))))
-
(define-public go-git-sr-ht-rockorager-tcell-term
(package
(name "go-git-sr-ht-rockorager-tcell-term")