[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
351/401: gnu: go-github-com-charmbracelet-bubbletea: Move to golang-xyz.
From: |
guix-commits |
Subject: |
351/401: gnu: go-github-com-charmbracelet-bubbletea: Move to golang-xyz. |
Date: |
Thu, 26 Dec 2024 19:31:24 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 1c6f37735398a52b74816cb7cea1207aea1a8477
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue Dec 24 12:27:45 2024 +0000
gnu: go-github-com-charmbracelet-bubbletea: Move to golang-xyz.
* gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea): Move
from here ...
* gnu/packages/golang-xyz.scm: ... to here.
Change-Id: Ice8bdd953a7687af28588f56ad5ecc4a89f21f1f
---
gnu/packages/golang-xyz.scm | 54 +++++++++++++++++++++++++++++++++++++++++++++
gnu/packages/golang.scm | 54 ---------------------------------------------
2 files changed, 54 insertions(+), 54 deletions(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index b9a079e3a0..c7131e35e5 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1783,6 +1783,60 @@ tools.")
@@url{https://github.com/charmbracelet/bubbletea, Bubble Tea} applications.")
(license license:expat)))
+(define-public go-github-com-charmbracelet-bubbletea
+ (package
+ (name "go-github-com-charmbracelet-bubbletea")
+ (version "1.2.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/bubbletea";)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0g5pj40lsdkh2gwixlpg53ji7fajncj512xj0v1x3mk5grgbc2zr"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/bubbletea"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-examples
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (for-each delete-file-recursively
+ '("examples" "tutorials")))))
+ (add-before 'check 'fix-tests
+ (lambda _
+ ;; XXX: The package requires
+ ;; "go-github-com-charmbracelet-x-ansi" version 0.4.5; with the
+ ;; newer version of "ansi", some "bubbletea" screen tests fail
+ ;; as "ansi" 0.5.2 handles escape sequences a little bit
+ ;; differently.
+ (substitute*
"src/github.com/charmbracelet/bubbletea/screen_test.go"
+ (("x1b\\[0K")
+ "x1b[K")
+ (("x1b\\[2;0H")
+ "x1b[2;H")))))))
+ (propagated-inputs
+ (list go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-x-term
+ go-github-com-erikgeiser-coninput
+ go-github-com-muesli-ansi
+ go-github-com-muesli-cancelreader
+ go-golang-org-x-sync
+ go-golang-org-x-sys))
+ (home-page "https://github.com/charmbracelet/bubbletea";)
+ (synopsis "Powerful little TUI framework")
+ (description
+ "Bubble Tea is a Go framework based on The Elm Architecture. It is
+well-suited for simple and complex terminal applications, either inline,
+full-window, or a mix of both.")
+ (license license:asl2.0)))
+
(define-public go-github-com-charmbracelet-lipgloss
(package
(name "go-github-com-charmbracelet-lipgloss")
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 0e09d4fd97..4db08881ea 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5555,60 +5555,6 @@ parser.")
@url{https://unicode.org/reports/tr29/, Unicode Standard Annex #29}.")
(license license:expat)))
-(define-public go-github-com-charmbracelet-bubbletea
- (package
- (name "go-github-com-charmbracelet-bubbletea")
- (version "1.2.4")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/charmbracelet/bubbletea";)
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0g5pj40lsdkh2gwixlpg53ji7fajncj512xj0v1x3mk5grgbc2zr"))))
- (build-system go-build-system)
- (arguments
- (list
- #:import-path "github.com/charmbracelet/bubbletea"
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'remove-examples
- (lambda* (#:key import-path #:allow-other-keys)
- (with-directory-excursion (string-append "src/" import-path)
- (for-each delete-file-recursively
- '("examples" "tutorials")))))
- (add-before 'check 'fix-tests
- (lambda _
- ;; XXX: The package requires
- ;; "go-github-com-charmbracelet-x-ansi" version 0.4.5; with the
- ;; newer version of "ansi", some "bubbletea" screen tests fail
- ;; as "ansi" 0.5.2 handles escape sequences a little bit
- ;; differently.
- (substitute*
"src/github.com/charmbracelet/bubbletea/screen_test.go"
- (("x1b\\[0K")
- "x1b[K")
- (("x1b\\[2;0H")
- "x1b[2;H")))))))
- (propagated-inputs
- (list go-github-com-charmbracelet-lipgloss
- go-github-com-charmbracelet-x-ansi
- go-github-com-charmbracelet-x-term
- go-github-com-erikgeiser-coninput
- go-github-com-muesli-ansi
- go-github-com-muesli-cancelreader
- go-golang-org-x-sync
- go-golang-org-x-sys))
- (home-page "https://github.com/charmbracelet/bubbletea";)
- (synopsis "Powerful little TUI framework")
- (description
- "Bubble Tea is a Go framework based on The Elm Architecture. It is
-well-suited for simple and complex terminal applications, either inline,
-full-window, or a mix of both.")
- (license license:asl2.0)))
-
(define-public go-github-com-containerd-console
(package
(name "go-github-com-containerd-console")
- 303/401: gnu: go-github-com-hanwen-go-fuse: Adjust inheritance., (continued)
- 303/401: gnu: go-github-com-hanwen-go-fuse: Adjust inheritance., guix-commits, 2024/12/26
- 312/401: gnu: go-github-com-hebcal-hebcal-go: Update to 0.9.31., guix-commits, 2024/12/26
- 344/401: gnu: go-github-com-skratchdot-open-golang: Move to golang-xyz., guix-commits, 2024/12/26
- 327/401: gnu: go-github-com-bits-and-blooms-bitset: Update to 1.20.0., guix-commits, 2024/12/26
- 328/401: gnu: Add go-github-com-gaissmai-bart., guix-commits, 2024/12/26
- 339/401: gnu: go-github-com-quic-go-webtransport-go: Fix tests., guix-commits, 2024/12/26
- 323/401: gnu: go-github-com-jbenet-go-context: Enable tests., guix-commits, 2024/12/26
- 353/401: gnu: packages/time: Remove golang module., guix-commits, 2024/12/26
- 361/401: gnu: go-gopkg-in-yaml-v3: Move to golang-xyz., guix-commits, 2024/12/26
- 359/401: gnu: go-github-com-warpfork-go-wish: Fix tests., guix-commits, 2024/12/26
- 351/401: gnu: go-github-com-charmbracelet-bubbletea: Move to golang-xyz.,
guix-commits <=
- 349/401: gnu: go-github-com-gizak-termui-v3: Move to golang-xyz., guix-commits, 2024/12/26
- 384/401: gnu: Add go-github-com-gofiber-fiber-v2., guix-commits, 2024/12/26
- 385/401: gnu: Add go-github-com-gobwas-pool., guix-commits, 2024/12/26
- 372/401: gnu: Add go-jose-util., guix-commits, 2024/12/26
- 376/401: gnu: Add go-github-com-knz-go-libedit., guix-commits, 2024/12/26
- 381/401: gnu: Add go-github-com-bytedance-sonic., guix-commits, 2024/12/26
- 386/401: gnu: Add go-github-com-gobwas-httphead., guix-commits, 2024/12/26
- 73/401: gnu: Add go-github-com-buildkite-shellwords., guix-commits, 2024/12/26
- 135/401: gnu: Add go-github-com-cockroachdb-apd., guix-commits, 2024/12/26
- 392/401: gnu: Add go-fxlint., guix-commits, 2024/12/26