* [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp.
@ 2024-11-23 18:27 Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (21 more replies)
0 siblings, 22 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
This patchset adds "go-github-com-noahgorstein-jqp":
https://github.com/noahgorstein/jqp
I placed it into "golang-xyz.scm" module for now, although I'm not really sure
if this place is right for this as it is an end program that can be run from a
terminal.
Artyom V. Poptsov (16):
gnu: Add go-github-com-atotto-clipboard.
gnu: Add go-github-com-aymanbagabas-go-udiff.
gnu: Add go-github-com-makenowjust-heredoc.
gnu: Add go-github-com-kylelemons-godebug-pretty.
gnu: Add go-github-com-sahilm-fuzzy.
gnu: Add go-github-com-charmbracelet-x-ansi.
gnu: Add go-github-com-charmbracelet-x-exp-golden.
gnu: Add go-github-com-charmbracelet-lipgloss.
gnu: Add go-github-com-charmbracelet-bubbles.
gnu: go-github-com-itchyny-gojq: Install the library.
gnu: gojq: Install the binary only.
gnu: go-github-com-charmbracelet-bubbletea: Remove input labels.
gnu: Add go-github-com-charmbracelet-x-term.
gnu: Add go-github-com-muesli-ansi.
gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3.
gnu: Add go-github-com-noahgorstein-jqp.
gnu/packages/golang-xyz.scm | 302 +++++++++++++++++++++++++++++++++++-
gnu/packages/golang.scm | 80 ++++++++--
gnu/packages/web.scm | 5 +-
3 files changed, 371 insertions(+), 16 deletions(-)
base-commit: 36f516bfcdf64185f5d70c21a908283be22a34fd
--
2.46.0
^ permalink raw reply [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 01/16] gnu: Add go-github-com-atotto-clipboard.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
` (20 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-atotto-clipboard): New variable.
Change-Id: I4a871983f564034045f4b2ba77f2453cfce5cb2b
---
gnu/packages/golang-xyz.scm | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 177ab8a20f..b050c285f3 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -85,7 +85,9 @@ (define-module (gnu packages golang-xyz)
#:use-module (gnu packages golang-maths)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages linux)
- #:use-module (gnu packages specifications))
+ #:use-module (gnu packages specifications)
+ #:use-module (gnu packages xdisorg)
+ #:use-module (gnu packages xorg))
;;; Commentary:
;;;
@@ -5735,6 +5737,37 @@ (define-public go-github-com-multiformats-go-varint
varints.")
(license license:expat)))
+(define-public go-github-com-atotto-clipboard
+ (package
+ (name "go-github-com-atotto-clipboard")
+ (version "0.1.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/atotto/clipboard")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ycd8zkgsq9iil9svhlwvhcqwcd7vik73nf8rnyfnn10gpjx97k5"))))
+ (build-system go-build-system)
+ (native-inputs (list xorg-server-for-tests))
+ (propagated-inputs (list xclip))
+ (arguments
+ (list
+ #:import-path "github.com/atotto/clipboard"
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'start-xorg-server
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; The test suite requires a running X server.
+ (system "Xvfb :1 &")
+ (setenv "DISPLAY" ":1"))))))
+ (home-page "https://github.com/atotto/clipboard")
+ (synopsis "Clipboard for Golang")
+ (description
+ "@code{clipboard} provides copying and pasting to the clipboard for Go.")
+ (license license:bsd-3)))
+
(define-public go-github-com-nats-io-nats-go
(package
(name "go-github-com-nats-io-nats-go")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 03/16] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
` (19 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang.scm (go-github-com-aymanbagabas-go-udiff): New variable.
Change-Id: Icac934589b041c9b3b5db0114173d25d0c3f4c34
---
gnu/packages/golang.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9b3a672887..8dd8350847 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7287,6 +7287,34 @@ (define-public go-github-com-mtibben-androiddnsfix
(define-public go-github-com-androiddnsfix
(deprecated-package "go-github-com-androiddnsfix" go-github-com-mtibben-androiddnsfix))
+(define-public go-github-com-aymanbagabas-go-udiff
+ (package
+ (name "go-github-com-aymanbagabas-go-udiff")
+ (version "0.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aymanbagabas/go-udiff")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "09p17r8s5flhq6p69z08345q0y99dpb0yyashlwpgxn45xir7y6g"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/aymanbagabas/go-udiff"))
+ (home-page "https://github.com/aymanbagabas/go-udiff")
+ (synopsis "Diffing library for Golang")
+ (description
+ "@code{udiff} (micro-diff, or µDiff) is a library that implements the
+@url{http://www.xmailserver.org/diff2.pdf, Myers' diffing algorithm}. It aims to
+provide a minimal API to compute and apply diffs with zero dependencies. It also
+supports generating diffs in the
+@url{https://www.gnu.org/software/diffutils/manual/html_node/Unified-Format.html,
+Unified Format}.")
+ (license license:expat)))
+
(define-public go-gopkg-in-ini
(package
(name "go-gopkg-in-ini")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 03/16] gnu: Add go-github-com-makenowjust-heredoc.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 04/16] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
` (18 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang.scm (go-github-com-makenowjust-heredoc): New variable.
Change-Id: I686dfd6a798da764b004a53a562ca788e70f8cd5
---
gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index b050c285f3..50f358ad58 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4832,6 +4832,29 @@ (define-public go-github-com-logrusorgru-aurora-v4
(native-inputs
(list go-github-com-stretchr-testify))))
+(define-public go-github-com-makenowjust-heredoc
+ (package
+ (name "go-github-com-makenowjust-heredoc")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/makenowjust/heredoc")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "18f21zm8n2wlnkz1ylw8rcxmqxyv2rlz8749yfqggm2m0m2884pj"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/MakeNowJust/heredoc"))
+ (home-page "https://github.com/MakeNowJust/heredoc")
+ (synopsis "Here-documents with indent")
+ (description
+ "Package heredoc provides creation of here-documents from raw strings.")
+ (license license:expat)))
+
(define-public go-github-com-marcinbor85-gohex
;; No release, see <https://github.com/marcinbor85/gohex/issues/5>.
(let ((commit "baab2527a9a2a4abb3dc06baabedfa5e0268b8d8")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 04/16] gnu: Add go-github-com-kylelemons-godebug-pretty.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (2 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 03/16] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 05/16] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
` (17 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang.scm (go-github-com-kylelemons-godebug-pretty): New variable.
Change-Id: Icd7d5fd70cf56d1ca74e9a2cfb929a3344128ba7
---
gnu/packages/golang.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 8dd8350847..f4a14cc427 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4722,6 +4722,14 @@ (define-public go-github-com-kylelemons-godebug
representation suitable for computing diffs.")
(license license:asl2.0)))
+(define-public go-github-com-kylelemons-godebug-pretty
+ (package
+ (inherit go-github-com-kylelemons-godebug)
+ (name "go-github-com-kylelemons-godebug-pretty")
+ (arguments
+ '(#:import-path "github.com/kylelemons/godebug/pretty"
+ #:unpack-path "github.com/kylelemons/godebug"))))
+
(define-public go-github-com-kr-text
(package
(name "go-github-com-kr-text")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 05/16] gnu: Add go-github-com-sahilm-fuzzy.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (3 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 04/16] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 06/16] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
` (16 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-sahilm-fuzzy): New variable.
Change-Id: Iebf4f8c3848e1e08b2860ac69a5a8d816ac260df
---
gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 50f358ad58..407a47efa6 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6635,6 +6635,32 @@ (define-public go-github-com-ryanuber-columnize
"This package implements column-formatted output for Golang.")
(license license:expat)))
+(define-public go-github-com-sahilm-fuzzy
+ (package
+ (name "go-github-com-sahilm-fuzzy")
+ (version "0.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sahilm/fuzzy")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "15j95gm7hcmg09x1b39vc4il8bryv4v0yljvvyq5vyc6iq66qrbz"))))
+ (build-system go-build-system)
+ (native-inputs (list go-github-com-kylelemons-godebug
+ go-github-com-kylelemons-godebug-pretty))
+ (arguments
+ (list
+ #:import-path "github.com/sahilm/fuzzy"))
+ (home-page "https://github.com/sahilm/fuzzy")
+ (synopsis "Fuzzy string matching for Golang")
+ (description
+ "@code{fuzzy} provides fuzzy string matching optimized for filenames and code
+symbols in the style of Sublime Text, VSCode, @code{IntelliJ} IDEA et al.")
+ (license license:expat)))
+
(define-public go-github-com-schollz-progressbar-v3
(package
(name "go-github-com-schollz-progressbar-v3")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 06/16] gnu: Add go-github-com-charmbracelet-x-ansi.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (4 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 05/16] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 07/16] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
` (15 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-ansi): New variable.
Change-Id: I1451ae9953bc87475413b83bb636a2df14ddc70c
---
gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 407a47efa6..40a8236fb9 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1498,6 +1498,35 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-x-ansi
+ (package
+ (name "go-github-com-charmbracelet-x-ansi")
+ (version "0.5.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "ansi"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/ansi"
+ #:unpack-path "github.com/charmbracelet/x"))
+ (propagated-inputs (list go-github-com-rivo-uniseg
+ go-github-com-lucasb-eyer-go-colorful))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "ANSI escape sequence parser and definitions")
+ (description
+ "@code{ansi} defines common ANSI escape sequences based on the
+@url{https://ecma-international.org/publications-and-standards/standards/ecma-48/,
+ECMA-48} specs.")
+ (license license:expat)))
+
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 07/16] gnu: Add go-github-com-charmbracelet-x-exp-golden.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (5 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 06/16] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 08/16] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
` (14 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-exp-golden): New variable.
Change-Id: I7fa815433d9a83e4562bdc769312dd05e0a298da
---
gnu/packages/golang-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 40a8236fb9..2681fec06b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1527,6 +1527,42 @@ (define-public go-github-com-charmbracelet-x-ansi
ECMA-48} specs.")
(license license:expat)))
+(define-public go-github-com-charmbracelet-x-exp-golden
+ (package
+ (name "go-github-com-charmbracelet-x-exp-golden")
+ (version "0.0.0-20241121171228-5bc00623ea2f")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "exp/golden"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/exp/golden"
+ #:unpack-path "github.com/charmbracelet/x/"
+ #:modules '((guix build go-build-system)
+ (guix build utils))
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'fix-tests
+ (lambda _
+ (invoke "chmod"
+ "-R"
+ "+w"
+ "src/github.com/charmbracelet/x/exp/golden"))))))
+ (propagated-inputs (list go-github-com-aymanbagabas-go-udiff))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "Verify @code{.golden} file equality")
+ (description "Golden files (@code{.golden}) contain the raw expected output of
+tests, which can contain control codes and escape sequences. @code{golden} package
+provides an API for comparing Golden files.")
+ (license license:expat)))
+
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 08/16] gnu: Add go-github-com-charmbracelet-lipgloss.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (6 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 07/16] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 09/16] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
` (13 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-lipgloss): New variable.
Change-Id: I73050c96830025ed63be7567873f8faf7573453d
---
gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 2681fec06b..80771f2263 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1498,6 +1498,34 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-lipgloss
+ (package
+ (name "go-github-com-charmbracelet-lipgloss")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/lipgloss")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0d1aqzsjy0mcliydbfbg223xxpf9646frbj35ac4fisdy3w3n142"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/lipgloss"))
+ (propagated-inputs (list go-github-com-rivo-uniseg
+ go-github-com-muesli-termenv
+ go-github-com-charmbracelet-x-exp-golden
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-aymanbagabas-go-udiff))
+ (home-page "https://github.com/charmbracelet/lipgloss")
+ (synopsis "Style definitions for nice terminal layouts")
+ (description
+ "Style definitions for nice terminal layouts. Built with TUIs in mind.")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-x-ansi
(package
(name "go-github-com-charmbracelet-x-ansi")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 09/16] gnu: Add go-github-com-charmbracelet-bubbles.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (7 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 08/16] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 10/16] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
` (12 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-bubbles): New variable.
Change-Id: I090db91509590ca9a8cab1a209d00bcc12b524e7
---
gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 80771f2263..7fda1bf613 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1498,6 +1498,43 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-bubbles
+ (package
+ (name "go-github-com-charmbracelet-bubbles")
+ (version "0.20.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/bubbles")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1qdcln01bq9lk6r33b8p5d5x850wgd8ddq57n4bg3xn76z2fd657"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/bubbles"))
+ (propagated-inputs (list go-github-com-sahilm-fuzzy
+ go-github-com-rivo-uniseg
+ go-github-com-muesli-termenv
+ go-github-com-mattn-go-runewidth
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-dustin-go-humanize
+ go-github-com-charmbracelet-x-exp-golden
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-harmonica
+ go-github-com-charmbracelet-bubbletea
+ go-github-com-atotto-clipboard
+ go-github-com-makenowjust-heredoc))
+ (home-page "https://github.com/charmbracelet/bubbles")
+ (synopsis "TUI components for Bubble Tea library")
+ (description
+ "@code{bubbles} is a library that provide components for
+@@url{https://github.com/charmbracelet/bubbletea, Bubble Tea} applications.")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-lipgloss
(package
(name "go-github-com-charmbracelet-lipgloss")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 10/16] gnu: go-github-com-itchyny-gojq: Install the library.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (8 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 09/16] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 11/16] gnu: gojq: Install the binary only Artyom V. Poptsov
` (11 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/web.scm (go-github-com-itchyny-gojq): Install the library
files instead of "gojq" binary.
Change-Id: I72235e0cfeee81b0e7490ebd9d92d0d36ceb1844
---
gnu/packages/web.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index d53815eadb..8245438c3b 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5605,7 +5605,7 @@ (define-public go-github-com-itchyny-gojq
(build-system go-build-system)
(arguments
(list
- #:import-path "github.com/itchyny/gojq/cmd/gojq"
+ #:import-path "github.com/itchyny/gojq/"
#:unpack-path "github.com/itchyny/gojq"))
(inputs
(list go-github-com-google-go-cmp
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 11/16] gnu: gojq: Install the binary only.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (9 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 10/16] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels Artyom V. Poptsov
` (10 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/web.scm (gojq): Install the binary only.
Change-Id: I6a4d0cbdba385460d7ab43d62fe1897922a7c7e9
---
gnu/packages/web.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 8245438c3b..da23192800 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5627,7 +5627,8 @@ (define-public gojq
(arguments
(ensure-keyword-arguments
(package-arguments go-github-com-itchyny-gojq)
- (list #:install-source? #f)))))
+ (list #:import-path "github.com/itchyny/gojq/cmd/gojq"
+ #:install-source? #f)))))
(define-public pup
(let ((revision "1")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (10 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 11/16] gnu: gojq: Install the binary only Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 13/16] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
` (9 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea):
[propagated-inputs]: Remove input labels.
Change-Id: If2dc587649c4e44aabf025de915655887d04530c
---
gnu/packages/golang.scm | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index f4a14cc427..84b797e1ff 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7052,16 +7052,16 @@ (define-public go-github-com-charmbracelet-bubbletea
(for-each delete-file-recursively
'("examples" "tutorials"))))))))
(propagated-inputs
- `(("github.com/mattn/go-isatty" ,go-github-com-mattn-go-isatty)
- ("github.com/muesli/termenv" ,go-github-com-muesli-termenv)
- ("github.com/mattn/go-runewidth" ,go-github-com-mattn-go-runewidth)
- ("go-github-com-muesli-reflow" ,go-github-com-muesli-reflow)
- ("go-github-com-lucasb-eyer-go-colorful" ,go-github-com-lucasb-eyer-go-colorful)
- ("github.com/containerd/console" ,go-github-com-containerd-console)
- ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
- ("go-golang-org-x-sys" ,go-golang-org-x-sys)
- ("go-golang-org-x-term" ,go-golang-org-x-term)
- ("github.com/mattn/go-isatty" ,go-github-com-mattn-go-isatty)))
+ (list go-github-com-mattn-go-isatty
+ go-github-com-muesli-termenv
+ go-github-com-mattn-go-runewidth
+ go-github-com-muesli-reflow
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-containerd-console
+ go-golang-org-x-crypto
+ go-golang-org-x-sys
+ go-golang-org-x-term
+ go-github-com-mattn-go-isatty))
(home-page "https://github.com/charmbracelet/bubbletea")
(synopsis "Powerful little TUI framework")
(description
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 13/16] gnu: Add go-github-com-charmbracelet-x-term.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (11 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 14/16] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
` (8 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-term): New variable.
Change-Id: I854febc3a3010f39051ee6fbd4a159993043d41e
---
gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 7fda1bf613..380bcd01f9 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1592,6 +1592,33 @@ (define-public go-github-com-charmbracelet-x-ansi
ECMA-48} specs.")
(license license:expat)))
+(define-public go-github-com-charmbracelet-x-term
+ (package
+ (name "go-github-com-charmbracelet-x-term")
+ (version "0.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "term"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1shw55110fnn4xz80wmgr18czmiil6z1j064m90iw8c7j9llfzn5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/term"
+ #:unpack-path "github.com/charmbracelet/x"))
+ (propagated-inputs (list go-github-com-rivo-uniseg
+ go-golang-org-x-sys))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "Terminal utilities and helpers")
+ (description
+ "@code{term} defines terminal utilities.")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-x-exp-golden
(package
(name "go-github-com-charmbracelet-x-exp-golden")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 14/16] gnu: Add go-github-com-muesli-ansi.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (12 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 13/16] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
` (7 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-muesli-ansi): New variable.
Change-Id: I3dbbd8af04373997fcb3c60872dff14ab1b2b76a
---
gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 380bcd01f9..dce2c9873e 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -5655,6 +5655,32 @@ (define-public go-github-com-msteinert-pam-v2
((#:import-path _ "github.com/msteinert/pam")
"github.com/msteinert/pam/v2")))))
+(define-public go-github-com-muesli-ansi
+ (package
+ (name "go-github-com-muesli-ansi")
+ (version "0.0.0-20230316100256-276c6243b2f6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/muesli/ansi")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1jr8kgn3vb72jmf4a8n52g876mfpbvk3310p8gsg7jkn338af4m9"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/muesli/ansi"))
+ (propagated-inputs
+ (list go-github-com-mattn-go-runewidth
+ go-github-com-rivo-uniseg))
+ (home-page "https://github.com/muesli/ansi")
+ (synopsis "Raw ANSI sequence helpers")
+ (description
+ "ANSI sequence helpers for working with raw ANSI sequences.")
+ (license license:expat)))
+
(define-public go-github-com-muesli-cancelreader
(package
(name "go-github-com-muesli-cancelreader")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (13 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 14/16] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 16/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (6 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea): Update to 1.2.3.
[propagated-inputs]: Add go-github-com-muesli-ansi, go-github-com-muesli-cancelreader,
go-github-com-charmbracelet-lipgloss,
go-github-com-charmbracelet-x-term,
go-github-com-charmbracelet-x-ansi, and go-golang-org-x-sync.
[arguments] <phases>: Fix tests that are failing due to newer version of
"go-github-com-charmbracelet-x-ansi" package.
Change-Id: Ifdb3074f342b34c07c0e7ab47341b159d1eea0c2
---
gnu/packages/golang.scm | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 84b797e1ff..322bd4224a 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7030,7 +7030,7 @@ (define-public go-github-com-rivo-uniseg
(define-public go-github-com-charmbracelet-bubbletea
(package
(name "go-github-com-charmbracelet-bubbletea")
- (version "0.13.2")
+ (version "1.2.3")
(source
(origin
(method git-fetch)
@@ -7040,7 +7040,7 @@ (define-public go-github-com-charmbracelet-bubbletea
(file-name (git-file-name name version))
(sha256
(base32
- "1105cggi5fwqx69m0vrhgwx6kaw82w4ahn58sj0a81603c4yvrk0"))))
+ "0ggkl29qixgin5av1mbnwfbb31kmwpczh8pgpjsx9z277fs55mph"))))
(build-system go-build-system)
(arguments
(list
@@ -7050,17 +7050,35 @@ (define-public go-github-com-charmbracelet-bubbletea
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file-recursively
- '("examples" "tutorials"))))))))
+ '("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-mattn-go-isatty
go-github-com-muesli-termenv
go-github-com-mattn-go-runewidth
+ go-github-com-muesli-ansi
+ go-github-com-muesli-cancelreader
go-github-com-muesli-reflow
go-github-com-lucasb-eyer-go-colorful
+ go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-x-term
+ go-github-com-charmbracelet-x-ansi
go-github-com-containerd-console
go-golang-org-x-crypto
go-golang-org-x-sys
go-golang-org-x-term
+ go-golang-org-x-sync
go-github-com-mattn-go-isatty))
(home-page "https://github.com/charmbracelet/bubbletea")
(synopsis "Powerful little TUI framework")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 16/16] gnu: Add go-github-com-noahgorstein-jqp.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (14 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
@ 2024-11-23 18:28 ` Artyom V. Poptsov
2024-11-23 22:32 ` [bug#74495] [PATCH 00/16] " Sharlatan Hellseher
` (5 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-23 18:28 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-noahgorstein-jqp): New variable.
Change-Id: I736e039a456960e0e5864d7d197b2a6a823bbe58
---
gnu/packages/golang-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index dce2c9873e..8ea109457f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -86,6 +86,7 @@ (define-module (gnu packages golang-xyz)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages linux)
#:use-module (gnu packages specifications)
+ #:use-module (gnu packages web)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages xorg))
@@ -6078,6 +6079,40 @@ (define-public go-github-com-niklasfasching-go-org
pretty printed rendering in Golang.")
(license license:expat)))
+(define-public go-github-com-noahgorstein-jqp
+ (package
+ (name "go-github-com-noahgorstein-jqp")
+ (version "0.7.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/noahgorstein/jqp")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "11xqh4113gkzp32hd4dg4cvjp40q3hxfh3889wd4bw2snl0alvcb"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.22
+ #:embed-files #~(list ".*.xml")
+ #:import-path "github.com/noahgorstein/jqp"))
+ (propagated-inputs (list go-github-com-spf13-viper
+ go-github-com-spf13-cobra
+ go-github-com-muesli-termenv
+ go-github-com-itchyny-gojq
+ go-github-com-itchyny-timefmt-go
+ go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-bubbletea
+ go-github-com-charmbracelet-bubbles
+ go-github-com-atotto-clipboard
+ go-github-com-alecthomas-chroma-v2))
+ (home-page "https://github.com/noahgorstein/jqp")
+ (synopsis "jqp")
+ (description "a TUI playground for exploring jq.")
+ (license license:expat)))
+
(define-public go-github-com-nsqio-go-diskqueue
(package
(name "go-github-com-nsqio-go-diskqueue")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (15 preceding siblings ...)
2024-11-23 18:28 ` [bug#74495] [PATCH 16/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
@ 2024-11-23 22:32 ` Sharlatan Hellseher
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (4 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-23 22:32 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
[-- Attachment #1: Type: text/plain, Size: 4467 bytes --]
Hi,
Thanks for the patches!
After a intial review of package placement there are some comments:
Better sutes for (gnu packages xdisorg), there are golang packages, and
it prevent importing xdisorg and xorg into golang-xyz.
--8<---------------cut here---------------start------------->8---
+(define-public go-github-com-atotto-clipboard
--8<---------------cut here---------------end--------------->8---
What's going on here, maybe repack go-github-com-kylelemons-godebug to
include all modules, wdyt?
--8<---------------cut here---------------start------------->8---
+(define-public go-github-com-kylelemons-godebug-pretty
--8<---------------cut here---------------end--------------->8---
Please, no new packages to golang.scm
--8<---------------cut here---------------start------------->8---
+(define-public go-github-com-aymanbagabas-go-udiff
--8<---------------cut here---------------end--------------->8---
Please follow the style ;-)
--8<---------------cut here---------------start------------->8---
+ (native-inputs (list go-github-com-kylelemons-godebug
+ go-github-com-kylelemons-godebug-pretty))
+ (arguments
+ (list
+ #:import-path "github.com/sahilm/fuzzy"))
--8<---------------cut here---------------end--------------->8---
Nixe to see that new go-import works with #:subdir!
--8<---------------cut here---------------start------------->8---
+(define-public go-github-com-charmbracelet-x-exp-golden
--8<---------------cut here---------------end--------------->8---
There is a guile funcion for that:
--8<---------------cut here---------------start------------->8---
+ #:modules '((guix build go-build-system)
+ (guix build utils))
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'fix-tests
+ (lambda _
+ (invoke "chmod"
+ "-R"
+ "+w"
+ "src/github.com/charmbracelet/x/exp/golden"))))))
--8<---------------cut here---------------end--------------->8---
For any like this, please sort alphabetically:
--8<---------------cut here---------------start------------->8---
+ (propagated-inputs (list go-github-com-sahilm-fuzzy
+ go-github-com-rivo-uniseg
+ go-github-com-muesli-termenv
+ go-github-com-mattn-go-runewidth
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-dustin-go-humanize
+ go-github-com-charmbracelet-x-exp-golden
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-harmonica
+ go-github-com-charmbracelet-bubbletea
+ go-github-com-atotto-clipboard
+ go-github-com-makenowjust-heredoc))
--8<---------------cut here---------------end--------------->8---
It might be a good case for dedicated issues to split library out of
binary, I can take it.
--8<---------------cut here---------------start------------->8---
[PATCH 10/16] gnu: go-github-com-itchyny-gojq: Install the library.
--8<---------------cut here---------------end--------------->8---
Description might need to be a little longer than synopsis, check the
code docstring sometimes modules documented well outside of README:
--8<---------------cut here---------------start------------->8---
+ (synopsis "Terminal utilities and helpers")
+ (description
+ "@code{term} defines terminal utilities.")
+ (license license:expat)))
--8<---------------cut here---------------end--------------->8---
Feel free to move to coresponded golang-* module:
--8<---------------cut here---------------start------------->8---
[PATCH 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels.
[PATCH 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3.
--8<---------------cut here---------------end--------------->8---
Let's keep it in web to reduce module cyles:
--8<---------------cut here---------------start------------->8---
[PATCH 16/16] gnu: Add go-github-com-noahgorstein-jqp.
--8<---------------cut here---------------end--------------->8---
In v2 I'll check license and package internals
--
Thanks,
Oleg
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (16 preceding siblings ...)
2024-11-23 22:32 ` [bug#74495] [PATCH 00/16] " Sharlatan Hellseher
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
` (14 more replies)
2024-11-26 19:09 ` [bug#74495] [PATCH 00/16] " Artyom V. Poptsov
` (3 subsequent siblings)
21 siblings, 15 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-atotto-clipboard): New variable.
Change-Id: I4a871983f564034045f4b2ba77f2453cfce5cb2b
---
gnu/packages/xdisorg.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index a75e9cd6ba..b7d8b1dd99 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -1817,6 +1817,37 @@ (define-public gammastep
less if you are working in front of the screen at night.")
(license license:gpl3)))
+(define-public go-github-com-atotto-clipboard
+ (package
+ (name "go-github-com-atotto-clipboard")
+ (version "0.1.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/atotto/clipboard")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ycd8zkgsq9iil9svhlwvhcqwcd7vik73nf8rnyfnn10gpjx97k5"))))
+ (build-system go-build-system)
+ (native-inputs (list xorg-server-for-tests))
+ (propagated-inputs (list xclip))
+ (arguments
+ (list
+ #:import-path "github.com/atotto/clipboard"
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'start-xorg-server
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; The test suite requires a running X server.
+ (system "Xvfb :1 &")
+ (setenv "DISPLAY" ":1"))))))
+ (home-page "https://github.com/atotto/clipboard")
+ (synopsis "Clipboard for Golang")
+ (description
+ "@code{clipboard} provides copying and pasting to the clipboard for Go.")
+ (license license:bsd-3)))
+
(define-public xscreensaver
(package
(name "xscreensaver")
base-commit: 047967c42f237695d5af2af53321c70f157685a3
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 03/16] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
` (13 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang.scm (go-github-com-aymanbagabas-go-udiff): New variable.
Change-Id: Icac934589b041c9b3b5db0114173d25d0c3f4c34
---
gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 177ab8a20f..29dbc189e1 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1101,6 +1101,34 @@ (define-public go-github-com-aymanbagabas-go-osc52-v2
clipboard.")
(license license:expat)))
+(define-public go-github-com-aymanbagabas-go-udiff
+ (package
+ (name "go-github-com-aymanbagabas-go-udiff")
+ (version "0.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aymanbagabas/go-udiff")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "09p17r8s5flhq6p69z08345q0y99dpb0yyashlwpgxn45xir7y6g"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/aymanbagabas/go-udiff"))
+ (home-page "https://github.com/aymanbagabas/go-udiff")
+ (synopsis "Diffing library for Golang")
+ (description
+ "@code{udiff} (micro-diff, or µDiff) is a library that implements the
+@url{http://www.xmailserver.org/diff2.pdf, Myers' diffing algorithm}. It aims to
+provide a minimal API to compute and apply diffs with zero dependencies. It also
+supports generating diffs in the
+@url{https://www.gnu.org/software/diffutils/manual/html_node/Unified-Format.html,
+Unified Format}.")
+ (license license:expat)))
+
(define-public go-github-com-benbjohnson-clock
(package
(name "go-github-com-benbjohnson-clock")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 03/16] gnu: Add go-github-com-makenowjust-heredoc.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 04/16] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
` (12 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang.scm (go-github-com-makenowjust-heredoc): New variable.
Change-Id: I686dfd6a798da764b004a53a562ca788e70f8cd5
---
gnu/packages/golang-xyz.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 29dbc189e1..94d2492c68 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4858,6 +4858,29 @@ (define-public go-github-com-logrusorgru-aurora-v4
(native-inputs
(list go-github-com-stretchr-testify))))
+(define-public go-github-com-makenowjust-heredoc
+ (package
+ (name "go-github-com-makenowjust-heredoc")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/makenowjust/heredoc")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "18f21zm8n2wlnkz1ylw8rcxmqxyv2rlz8749yfqggm2m0m2884pj"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/MakeNowJust/heredoc"))
+ (home-page "https://github.com/MakeNowJust/heredoc")
+ (synopsis "Here-documents with indent")
+ (description
+ "Package heredoc provides creation of here-documents from raw strings.")
+ (license license:expat)))
+
(define-public go-github-com-marcinbor85-gohex
;; No release, see <https://github.com/marcinbor85/gohex/issues/5>.
(let ((commit "baab2527a9a2a4abb3dc06baabedfa5e0268b8d8")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 04/16] gnu: Add go-github-com-kylelemons-godebug-pretty.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 03/16] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 05/16] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
` (11 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang.scm (go-github-com-kylelemons-godebug-pretty): New variable.
Change-Id: Icd7d5fd70cf56d1ca74e9a2cfb929a3344128ba7
---
gnu/packages/golang.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9b3a672887..9670e16104 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4722,6 +4722,14 @@ (define-public go-github-com-kylelemons-godebug
representation suitable for computing diffs.")
(license license:asl2.0)))
+(define-public go-github-com-kylelemons-godebug-pretty
+ (package
+ (inherit go-github-com-kylelemons-godebug)
+ (name "go-github-com-kylelemons-godebug-pretty")
+ (arguments
+ '(#:import-path "github.com/kylelemons/godebug/pretty"
+ #:unpack-path "github.com/kylelemons/godebug"))))
+
(define-public go-github-com-kr-text
(package
(name "go-github-com-kr-text")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 05/16] gnu: Add go-github-com-sahilm-fuzzy.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (2 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 04/16] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 06/16] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
` (10 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-sahilm-fuzzy): New variable.
Change-Id: Iebf4f8c3848e1e08b2860ac69a5a8d816ac260df
---
gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 94d2492c68..a8c84c9e55 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6630,6 +6630,32 @@ (define-public go-github-com-ryanuber-columnize
"This package implements column-formatted output for Golang.")
(license license:expat)))
+(define-public go-github-com-sahilm-fuzzy
+ (package
+ (name "go-github-com-sahilm-fuzzy")
+ (version "0.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sahilm/fuzzy")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "15j95gm7hcmg09x1b39vc4il8bryv4v0yljvvyq5vyc6iq66qrbz"))))
+ (build-system go-build-system)
+ (native-inputs
+ (list go-github-com-kylelemons-godebug
+ go-github-com-kylelemons-godebug-pretty))
+ (arguments
+ (list #:import-path "github.com/sahilm/fuzzy"))
+ (home-page "https://github.com/sahilm/fuzzy")
+ (synopsis "Fuzzy string matching for Golang")
+ (description
+ "@code{fuzzy} provides fuzzy string matching optimized for filenames and code
+symbols in the style of Sublime Text, VSCode, @code{IntelliJ} IDEA et al.")
+ (license license:expat)))
+
(define-public go-github-com-schollz-progressbar-v3
(package
(name "go-github-com-schollz-progressbar-v3")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 06/16] gnu: Add go-github-com-charmbracelet-x-ansi.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (3 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 05/16] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 07/16] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
` (9 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-ansi): New variable.
Change-Id: I1451ae9953bc87475413b83bb636a2df14ddc70c
---
gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index a8c84c9e55..d4e34a19b4 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1524,6 +1524,35 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-x-ansi
+ (package
+ (name "go-github-com-charmbracelet-x-ansi")
+ (version "0.5.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "ansi"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/ansi"
+ #:unpack-path "github.com/charmbracelet/x"))
+ (propagated-inputs (list go-github-com-rivo-uniseg
+ go-github-com-lucasb-eyer-go-colorful))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "ANSI escape sequence parser and definitions")
+ (description
+ "@code{ansi} defines common ANSI escape sequences based on the
+@url{https://ecma-international.org/publications-and-standards/standards/ecma-48/,
+ECMA-48} specs.")
+ (license license:expat)))
+
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 07/16] gnu: Add go-github-com-charmbracelet-x-exp-golden.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (4 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 06/16] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 08/16] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
` (8 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-exp-golden): New variable.
Change-Id: I7fa815433d9a83e4562bdc769312dd05e0a298da
---
gnu/packages/golang-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index d4e34a19b4..61ead1981d 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1553,6 +1553,42 @@ (define-public go-github-com-charmbracelet-x-ansi
ECMA-48} specs.")
(license license:expat)))
+(define-public go-github-com-charmbracelet-x-exp-golden
+ (package
+ (name "go-github-com-charmbracelet-x-exp-golden")
+ (version "0.0.0-20241121171228-5bc00623ea2f")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "exp/golden"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/exp/golden"
+ #:unpack-path "github.com/charmbracelet/x/"
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'fix-tests
+ (lambda _
+ (let ((dir "src/github.com/charmbracelet/x/exp/golden"))
+ (for-each (lambda (f)
+ (if (file-is-directory? f)
+ (chmod f #o666)
+ (chmod f #o644)))
+ (find-files dir))))))))
+ (propagated-inputs (list go-github-com-aymanbagabas-go-udiff))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "Verify @code{.golden} file equality")
+ (description "Golden files (@code{.golden}) contain the raw expected output of
+tests, which can contain control codes and escape sequences. @code{golden} package
+provides an API for comparing Golden files.")
+ (license license:expat)))
+
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 08/16] gnu: Add go-github-com-charmbracelet-lipgloss.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (5 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 07/16] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 09/16] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
` (7 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-lipgloss): New variable.
Change-Id: I73050c96830025ed63be7567873f8faf7573453d
---
gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 61ead1981d..4097cdd42a 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1524,6 +1524,34 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-lipgloss
+ (package
+ (name "go-github-com-charmbracelet-lipgloss")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/lipgloss")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0d1aqzsjy0mcliydbfbg223xxpf9646frbj35ac4fisdy3w3n142"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/lipgloss"))
+ (propagated-inputs (list go-github-com-aymanbagabas-go-udiff
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-x-exp-golden
+ go-github-com-muesli-termenv
+ go-github-com-rivo-uniseg))
+ (home-page "https://github.com/charmbracelet/lipgloss")
+ (synopsis "Style definitions for nice terminal layouts")
+ (description
+ "Style definitions for nice terminal layouts. Built with TUIs in mind.")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-x-ansi
(package
(name "go-github-com-charmbracelet-x-ansi")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 09/16] gnu: Add go-github-com-charmbracelet-bubbles.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (6 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 08/16] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 10/16] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
` (6 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-bubbles): New variable.
Change-Id: I090db91509590ca9a8cab1a209d00bcc12b524e7
---
gnu/packages/golang-xyz.scm | 39 ++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 4097cdd42a..f362595ec8 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -85,7 +85,8 @@ (define-module (gnu packages golang-xyz)
#:use-module (gnu packages golang-maths)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages linux)
- #:use-module (gnu packages specifications))
+ #:use-module (gnu packages specifications)
+ #:use-module (gnu packages xdisorg))
;;; Commentary:
;;;
@@ -1524,6 +1525,42 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-bubbles
+ (package
+ (name "go-github-com-charmbracelet-bubbles")
+ (version "0.20.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/bubbles")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1qdcln01bq9lk6r33b8p5d5x850wgd8ddq57n4bg3xn76z2fd657"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/charmbracelet/bubbles"))
+ (propagated-inputs (list go-github-com-atotto-clipboard
+ go-github-com-charmbracelet-bubbletea
+ go-github-com-charmbracelet-harmonica
+ go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-x-exp-golden
+ go-github-com-dustin-go-humanize
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-makenowjust-heredoc
+ go-github-com-mattn-go-runewidth
+ go-github-com-muesli-termenv
+ go-github-com-rivo-uniseg
+ go-github-com-sahilm-fuzzy))
+ (home-page "https://github.com/charmbracelet/bubbles")
+ (synopsis "TUI components for Bubble Tea library")
+ (description
+ "@code{bubbles} is a library that provide components for
+@@url{https://github.com/charmbracelet/bubbletea, Bubble Tea} applications.")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-lipgloss
(package
(name "go-github-com-charmbracelet-lipgloss")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 10/16] gnu: go-github-com-itchyny-gojq: Install the library.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (7 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 09/16] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 11/16] gnu: gojq: Install the binary only Artyom V. Poptsov
` (5 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/web.scm (go-github-com-itchyny-gojq): Install the library
files instead of "gojq" binary.
Change-Id: I72235e0cfeee81b0e7490ebd9d92d0d36ceb1844
---
gnu/packages/web.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index d53815eadb..8245438c3b 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5605,7 +5605,7 @@ (define-public go-github-com-itchyny-gojq
(build-system go-build-system)
(arguments
(list
- #:import-path "github.com/itchyny/gojq/cmd/gojq"
+ #:import-path "github.com/itchyny/gojq/"
#:unpack-path "github.com/itchyny/gojq"))
(inputs
(list go-github-com-google-go-cmp
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 11/16] gnu: gojq: Install the binary only.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (8 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 10/16] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels Artyom V. Poptsov
` (4 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/web.scm (gojq): Install the binary only.
Change-Id: I6a4d0cbdba385460d7ab43d62fe1897922a7c7e9
---
gnu/packages/web.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 8245438c3b..da23192800 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5627,7 +5627,8 @@ (define-public gojq
(arguments
(ensure-keyword-arguments
(package-arguments go-github-com-itchyny-gojq)
- (list #:install-source? #f)))))
+ (list #:import-path "github.com/itchyny/gojq/cmd/gojq"
+ #:install-source? #f)))))
(define-public pup
(let ((revision "1")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (9 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 11/16] gnu: gojq: Install the binary only Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 13/16] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
` (3 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea):
[propagated-inputs]: Remove input labels.
Change-Id: If2dc587649c4e44aabf025de915655887d04530c
---
gnu/packages/golang.scm | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9670e16104..df5111922b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7052,16 +7052,16 @@ (define-public go-github-com-charmbracelet-bubbletea
(for-each delete-file-recursively
'("examples" "tutorials"))))))))
(propagated-inputs
- `(("github.com/mattn/go-isatty" ,go-github-com-mattn-go-isatty)
- ("github.com/muesli/termenv" ,go-github-com-muesli-termenv)
- ("github.com/mattn/go-runewidth" ,go-github-com-mattn-go-runewidth)
- ("go-github-com-muesli-reflow" ,go-github-com-muesli-reflow)
- ("go-github-com-lucasb-eyer-go-colorful" ,go-github-com-lucasb-eyer-go-colorful)
- ("github.com/containerd/console" ,go-github-com-containerd-console)
- ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
- ("go-golang-org-x-sys" ,go-golang-org-x-sys)
- ("go-golang-org-x-term" ,go-golang-org-x-term)
- ("github.com/mattn/go-isatty" ,go-github-com-mattn-go-isatty)))
+ (list go-github-com-mattn-go-isatty
+ go-github-com-muesli-termenv
+ go-github-com-mattn-go-runewidth
+ go-github-com-muesli-reflow
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-containerd-console
+ go-golang-org-x-crypto
+ go-golang-org-x-sys
+ go-golang-org-x-term
+ go-github-com-mattn-go-isatty))
(home-page "https://github.com/charmbracelet/bubbletea")
(synopsis "Powerful little TUI framework")
(description
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 13/16] gnu: Add go-github-com-charmbracelet-x-term.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (10 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 14/16] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
` (2 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-term): New variable.
Change-Id: I854febc3a3010f39051ee6fbd4a159993043d41e
---
gnu/packages/golang-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index f362595ec8..0f5605901f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1618,6 +1618,39 @@ (define-public go-github-com-charmbracelet-x-ansi
ECMA-48} specs.")
(license license:expat)))
+(define-public go-github-com-charmbracelet-x-term
+ (package
+ (name "go-github-com-charmbracelet-x-term")
+ (version "0.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "term"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1shw55110fnn4xz80wmgr18czmiil6z1j064m90iw8c7j9llfzn5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/term"
+ #:unpack-path "github.com/charmbracelet/x"))
+ (propagated-inputs (list go-github-com-rivo-uniseg
+ go-golang-org-x-sys))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "Terminal utilities and helpers")
+ (description
+ "@code{term} provides an API for working with terminals that includes:
+@itemize
+@item Switching a terminal to the raw mode.
+@item Getting, setting and restoring the state of a terminal.
+@item Getting size of a terminal.
+@item Reading passwords from a terminal without a local echo.
+@end itemize")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-x-exp-golden
(package
(name "go-github-com-charmbracelet-x-exp-golden")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 14/16] gnu: Add go-github-com-muesli-ansi.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (11 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 13/16] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 16/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-muesli-ansi): New variable.
Change-Id: I3dbbd8af04373997fcb3c60872dff14ab1b2b76a
---
gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 0f5605901f..7a2c78192a 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -5687,6 +5687,31 @@ (define-public go-github-com-msteinert-pam-v2
((#:import-path _ "github.com/msteinert/pam")
"github.com/msteinert/pam/v2")))))
+(define-public go-github-com-muesli-ansi
+ (package
+ (name "go-github-com-muesli-ansi")
+ (version "0.0.0-20230316100256-276c6243b2f6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/muesli/ansi")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1jr8kgn3vb72jmf4a8n52g876mfpbvk3310p8gsg7jkn338af4m9"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/muesli/ansi"))
+ (propagated-inputs
+ (list go-github-com-mattn-go-runewidth
+ go-github-com-rivo-uniseg))
+ (home-page "https://github.com/muesli/ansi")
+ (synopsis "Raw ANSI sequence helpers")
+ (description
+ "ANSI sequence helpers for working with raw ANSI sequences.")
+ (license license:expat)))
+
(define-public go-github-com-muesli-cancelreader
(package
(name "go-github-com-muesli-cancelreader")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (12 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 14/16] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 16/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea): Update to 1.2.3.
[propagated-inputs]: Add go-github-com-muesli-ansi,
go-github-com-muesli-cancelreader, go-github-com-charmbracelet-lipgloss,
go-github-com-charmbracelet-x-term, go-github-com-charmbracelet-x-ansi, and
go-golang-org-x-sync. Sort inputs alphabetically.
[arguments] <phases>: Fix tests that are failing due to newer version of
"go-github-com-charmbracelet-x-ansi" package.
Change-Id: Ifdb3074f342b34c07c0e7ab47341b159d1eea0c2
---
gnu/packages/golang.scm | 36 +++++++++++++++++++++++++++---------
1 file changed, 27 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index df5111922b..401626326b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7030,7 +7030,7 @@ (define-public go-github-com-rivo-uniseg
(define-public go-github-com-charmbracelet-bubbletea
(package
(name "go-github-com-charmbracelet-bubbletea")
- (version "0.13.2")
+ (version "1.2.3")
(source
(origin
(method git-fetch)
@@ -7040,7 +7040,7 @@ (define-public go-github-com-charmbracelet-bubbletea
(file-name (git-file-name name version))
(sha256
(base32
- "1105cggi5fwqx69m0vrhgwx6kaw82w4ahn58sj0a81603c4yvrk0"))))
+ "0ggkl29qixgin5av1mbnwfbb31kmwpczh8pgpjsx9z277fs55mph"))))
(build-system go-build-system)
(arguments
(list
@@ -7050,18 +7050,36 @@ (define-public go-github-com-charmbracelet-bubbletea
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file-recursively
- '("examples" "tutorials"))))))))
+ '("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-mattn-go-isatty
- go-github-com-muesli-termenv
+ (list go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-x-term
+ go-github-com-containerd-console
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-mattn-go-isatty
+ go-github-com-mattn-go-isatty
go-github-com-mattn-go-runewidth
+ go-github-com-muesli-ansi
+ go-github-com-muesli-cancelreader
go-github-com-muesli-reflow
- go-github-com-lucasb-eyer-go-colorful
- go-github-com-containerd-console
+ go-github-com-muesli-termenv
go-golang-org-x-crypto
+ go-golang-org-x-sync
go-golang-org-x-sys
- go-golang-org-x-term
- go-github-com-mattn-go-isatty))
+ go-golang-org-x-term))
(home-page "https://github.com/charmbracelet/bubbletea")
(synopsis "Powerful little TUI framework")
(description
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v2 16/16] gnu: Add go-github-com-noahgorstein-jqp.
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (13 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
@ 2024-11-24 10:27 ` Artyom V. Poptsov
14 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-24 10:27 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov
* gnu/packages/golang-xyz.scm (go-github-com-noahgorstein-jqp): New variable.
Change-Id: I736e039a456960e0e5864d7d197b2a6a823bbe58
---
gnu/packages/golang-xyz.scm | 37 ++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 7a2c78192a..b137729ca2 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -86,7 +86,8 @@ (define-module (gnu packages golang-xyz)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages linux)
#:use-module (gnu packages specifications)
- #:use-module (gnu packages xdisorg))
+ #:use-module (gnu packages xdisorg)
+ #:use-module (gnu packages web))
;;; Commentary:
;;;
@@ -6078,6 +6079,40 @@ (define-public go-github-com-niklasfasching-go-org
pretty printed rendering in Golang.")
(license license:expat)))
+(define-public go-github-com-noahgorstein-jqp
+ (package
+ (name "go-github-com-noahgorstein-jqp")
+ (version "0.7.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/noahgorstein/jqp")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "11xqh4113gkzp32hd4dg4cvjp40q3hxfh3889wd4bw2snl0alvcb"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.22
+ #:embed-files #~(list ".*.xml")
+ #:import-path "github.com/noahgorstein/jqp"))
+ (propagated-inputs (list go-github-com-spf13-viper
+ go-github-com-spf13-cobra
+ go-github-com-muesli-termenv
+ go-github-com-itchyny-gojq
+ go-github-com-itchyny-timefmt-go
+ go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-bubbletea
+ go-github-com-charmbracelet-bubbles
+ go-github-com-atotto-clipboard
+ go-github-com-alecthomas-chroma-v2))
+ (home-page "https://github.com/noahgorstein/jqp")
+ (synopsis "jqp")
+ (description "a TUI playground for exploring jq.")
+ (license license:expat)))
+
(define-public go-github-com-nsqio-go-diskqueue
(package
(name "go-github-com-nsqio-go-diskqueue")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (17 preceding siblings ...)
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
@ 2024-11-26 19:09 ` Artyom V. Poptsov
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (2 subsequent siblings)
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-11-26 19:09 UTC (permalink / raw)
To: 74495
[-- Attachment #1: Type: text/plain, Size: 669 bytes --]
The patch
--8<---------------cut here---------------start------------->8---
gnu: go-github-com-charmbracelet-bubbletea: Remove input labels.
* gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea):
[propagated-inputs]: Remove input labels.
--8<---------------cut here---------------end--------------->8---
pushed to the "master" branch separately as
a2a3264bb38568e892e69e64dcfd12829a9975ce (as suggested by Sharlatan
Hellseher.)
- avp
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 869 bytes --]
^ permalink raw reply [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 00/15] gnu: Add go-jqp.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (18 preceding siblings ...)
2024-11-26 19:09 ` [bug#74495] [PATCH 00/16] " Artyom V. Poptsov
@ 2024-11-28 23:48 ` Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 01/15] gnu: Add go-github-com-atotto-clipboard Sharlatan Hellseher
` (14 more replies)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-12-01 7:34 ` [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
21 siblings, 15 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:48 UTC (permalink / raw)
To: 74495; +Cc: Artyom V . Poptsov, Sharlatan Hellseher
Hi,
I could apply your patches and build them successfully.
Please see the v3 which contains some package location shift (sorry if I've
confused you in first place), description style fixtures and phases
modifications.
Feel free to merge when you feel it's the time ;-)
Artyom V. Poptsov (15):
gnu: Add go-github-com-atotto-clipboard.
gnu: Add go-github-com-aymanbagabas-go-udiff.
gnu: Add go-github-com-makenowjust-heredoc.
gnu: Add go-github-com-kylelemons-godebug-pretty.
gnu: Add go-github-com-sahilm-fuzzy.
gnu: Add go-github-com-charmbracelet-x-ansi.
gnu: Add go-github-com-charmbracelet-x-exp-golden.
gnu: Add go-github-com-charmbracelet-x-term.
gnu: Add go-github-com-charmbracelet-lipgloss.
gnu: Add go-github-com-charmbracelet-bubbles.
gnu: Add go-github-com-muesli-ansi.
gnu: go-github-com-itchyny-gojq: Install the library.
gnu: gojq: Adjust import path.
gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3.
gnu: Add go-jqp.
gnu/packages/golang-xyz.scm | 311 +++++++++++++++++++++++++++++++++++-
gnu/packages/golang.scm | 57 +++++--
gnu/packages/web.scm | 45 +++++-
3 files changed, 395 insertions(+), 18 deletions(-)
base-commit: cf16dcb95fee602fa2cd3377de769c57a123f9c1
--
2.46.0
^ permalink raw reply [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 01/15] gnu: Add go-github-com-atotto-clipboard.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
@ 2024-11-28 23:48 ` Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff Sharlatan Hellseher
` (13 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:48 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-atotto-clipboard): New variable.
Change-Id: I4a871983f564034045f4b2ba77f2453cfce5cb2b
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 37 ++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 0ef4c46d9f..63ac100349 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -85,7 +85,9 @@ (define-module (gnu packages golang-xyz)
#:use-module (gnu packages golang-maths)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages linux)
- #:use-module (gnu packages specifications))
+ #:use-module (gnu packages specifications)
+ #:use-module (gnu packages xdisorg)
+ #:use-module (gnu packages xorg))
;;; Commentary:
;;;
@@ -958,6 +960,39 @@ (define-public go-github-com-asaskevich-govalidator
@url{https://github.com/chriso/validator.js,validator.js}.")
(license license:expat)))
+(define-public go-github-com-atotto-clipboard
+ (package
+ (name "go-github-com-atotto-clipboard")
+ (version "0.1.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/atotto/clipboard")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ycd8zkgsq9iil9svhlwvhcqwcd7vik73nf8rnyfnn10gpjx97k5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/atotto/clipboard"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'start-xorg-server
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; The test suite requires a running X server.
+ (system "Xvfb :1 &")
+ (setenv "DISPLAY" ":1"))))))
+ (native-inputs
+ (list xorg-server-for-tests))
+ (propagated-inputs (list xclip))
+ (home-page "https://github.com/atotto/clipboard")
+ (synopsis "Clipboard for Golang")
+ (description
+ "@code{clipboard} provides copying and pasting to the clipboard for Go.")
+ (license license:bsd-3)))
+
(define-public go-github-com-audriusbutkevicius-recli
(package
(name "go-github-com-audriusbutkevicius-recli")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 01/15] gnu: Add go-github-com-atotto-clipboard Sharlatan Hellseher
@ 2024-11-28 23:48 ` Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 03/15] gnu: Add go-github-com-makenowjust-heredoc Sharlatan Hellseher
` (12 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:48 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-aymanbagabas-go-udiff): New variable.
Change-Id: Icac934589b041c9b3b5db0114173d25d0c3f4c34
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 63ac100349..561b82af11 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1136,6 +1136,34 @@ (define-public go-github-com-aymanbagabas-go-osc52-v2
clipboard.")
(license license:expat)))
+(define-public go-github-com-aymanbagabas-go-udiff
+ (package
+ (name "go-github-com-aymanbagabas-go-udiff")
+ (version "0.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aymanbagabas/go-udiff")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "09p17r8s5flhq6p69z08345q0y99dpb0yyashlwpgxn45xir7y6g"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/aymanbagabas/go-udiff"))
+ (home-page "https://github.com/aymanbagabas/go-udiff")
+ (synopsis "Diffing library for Golang")
+ (description
+ "@code{udiff} (micro-diff, or µDiff) is a library that implements the
+@url{http://www.xmailserver.org/diff2.pdf, Myers' diffing algorithm}. It aims to
+provide a minimal API to compute and apply diffs with zero dependencies. It also
+supports generating diffs in the
+@url{https://www.gnu.org/software/diffutils/manual/html_node/Unified-Format.html,
+Unified Format}.")
+ (license license:expat)))
+
(define-public go-github-com-benbjohnson-clock
(package
(name "go-github-com-benbjohnson-clock")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 03/15] gnu: Add go-github-com-makenowjust-heredoc.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 01/15] gnu: Add go-github-com-atotto-clipboard Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff Sharlatan Hellseher
@ 2024-11-28 23:48 ` Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 04/15] gnu: Add go-github-com-kylelemons-godebug-pretty Sharlatan Hellseher
` (11 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:48 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-makenowjust-heredoc): New variable.
Change-Id: I686dfd6a798da764b004a53a562ca788e70f8cd5
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 561b82af11..fefc5c6a97 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4893,6 +4893,30 @@ (define-public go-github-com-logrusorgru-aurora-v4
(native-inputs
(list go-github-com-stretchr-testify))))
+(define-public go-github-com-makenowjust-heredoc
+ (package
+ (name "go-github-com-makenowjust-heredoc")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/makenowjust/heredoc")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "18f21zm8n2wlnkz1ylw8rcxmqxyv2rlz8749yfqggm2m0m2884pj"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/MakeNowJust/heredoc"))
+ (home-page "https://github.com/MakeNowJust/heredoc")
+ (synopsis "Here-documents with indent")
+ (description
+ "This package implements a functionality of creating here-documents from
+raw strings.")
+ (license license:expat)))
+
(define-public go-github-com-marcinbor85-gohex
;; No release, see <https://github.com/marcinbor85/gohex/issues/5>.
(let ((commit "baab2527a9a2a4abb3dc06baabedfa5e0268b8d8")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 04/15] gnu: Add go-github-com-kylelemons-godebug-pretty.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (2 preceding siblings ...)
2024-11-28 23:48 ` [bug#74495] [PATCH 03/15] gnu: Add go-github-com-makenowjust-heredoc Sharlatan Hellseher
@ 2024-11-28 23:48 ` Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 05/15] gnu: Add go-github-com-sahilm-fuzzy Sharlatan Hellseher
` (10 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:48 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang.scm (go-github-com-kylelemons-godebug-pretty): New variable.
Change-Id: Icd7d5fd70cf56d1ca74e9a2cfb929a3344128ba7
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4db14a5ae1..88878b6b23 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4722,6 +4722,16 @@ (define-public go-github-com-kylelemons-godebug
representation suitable for computing diffs.")
(license license:asl2.0)))
+;; TODO: Merge with go-github-com-kylelemons-godebug and provide both module;
+;; for go-team.
+(define-public go-github-com-kylelemons-godebug-pretty
+ (package
+ (inherit go-github-com-kylelemons-godebug)
+ (name "go-github-com-kylelemons-godebug-pretty")
+ (arguments
+ '(#:import-path "github.com/kylelemons/godebug/pretty"
+ #:unpack-path "github.com/kylelemons/godebug"))))
+
(define-public go-github-com-kr-text
(package
(name "go-github-com-kr-text")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 05/15] gnu: Add go-github-com-sahilm-fuzzy.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (3 preceding siblings ...)
2024-11-28 23:48 ` [bug#74495] [PATCH 04/15] gnu: Add go-github-com-kylelemons-godebug-pretty Sharlatan Hellseher
@ 2024-11-28 23:48 ` Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 06/15] gnu: Add go-github-com-charmbracelet-x-ansi Sharlatan Hellseher
` (9 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:48 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-sahilm-fuzzy): New variable.
Change-Id: Iebf4f8c3848e1e08b2860ac69a5a8d816ac260df
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index fefc5c6a97..2ff995bb14 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6666,6 +6666,32 @@ (define-public go-github-com-ryanuber-columnize
"This package implements column-formatted output for Golang.")
(license license:expat)))
+(define-public go-github-com-sahilm-fuzzy
+ (package
+ (name "go-github-com-sahilm-fuzzy")
+ (version "0.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sahilm/fuzzy")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "15j95gm7hcmg09x1b39vc4il8bryv4v0yljvvyq5vyc6iq66qrbz"))))
+ (build-system go-build-system)
+ (native-inputs
+ (list go-github-com-kylelemons-godebug
+ go-github-com-kylelemons-godebug-pretty))
+ (arguments
+ (list #:import-path "github.com/sahilm/fuzzy"))
+ (home-page "https://github.com/sahilm/fuzzy")
+ (synopsis "Fuzzy string matching for Golang")
+ (description
+ "@code{fuzzy} provides fuzzy string matching optimized for filenames and code
+symbols in the style of Sublime Text, VSCode, @code{IntelliJ} IDEA et al.")
+ (license license:expat)))
+
(define-public go-github-com-schollz-progressbar-v3
(package
(name "go-github-com-schollz-progressbar-v3")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 06/15] gnu: Add go-github-com-charmbracelet-x-ansi.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (4 preceding siblings ...)
2024-11-28 23:48 ` [bug#74495] [PATCH 05/15] gnu: Add go-github-com-sahilm-fuzzy Sharlatan Hellseher
@ 2024-11-28 23:49 ` Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden Sharlatan Hellseher
` (8 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:49 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-ansi): New variable.
Change-Id: I1451ae9953bc87475413b83bb636a2df14ddc70c
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 2ff995bb14..d3b478dab0 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1559,6 +1559,36 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-x-ansi
+ (package
+ (name "go-github-com-charmbracelet-x-ansi")
+ (version "0.5.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "ansi"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/ansi"
+ #:unpack-path "github.com/charmbracelet/x"))
+ (propagated-inputs
+ (list go-github-com-lucasb-eyer-go-colorful
+ go-github-com-rivo-uniseg))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "ANSI escape sequence parser and definitions")
+ (description
+ "@code{ansi} defines common ANSI escape sequences based on the
+@url{https://ecma-international.org/publications-and-standards/standards/ecma-48/,
+ECMA-48} specs.")
+ (license license:expat)))
+
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (5 preceding siblings ...)
2024-11-28 23:49 ` [bug#74495] [PATCH 06/15] gnu: Add go-github-com-charmbracelet-x-ansi Sharlatan Hellseher
@ 2024-11-28 23:49 ` Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 08/15] gnu: Add go-github-com-charmbracelet-x-term Sharlatan Hellseher
` (7 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:49 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-exp-golden): New variable.
Change-Id: I7fa815433d9a83e4562bdc769312dd05e0a298da
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index d3b478dab0..81fd07f402 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1589,6 +1589,48 @@ (define-public go-github-com-charmbracelet-x-ansi
ECMA-48} specs.")
(license license:expat)))
+(define-public go-github-com-charmbracelet-x-exp-golden
+ (package
+ (name "go-github-com-charmbracelet-x-exp-golden")
+ (version "0.0.0-20241121171228-5bc00623ea2f")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "exp/golden"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/exp/golden"
+ #:unpack-path "github.com/charmbracelet/x/"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda* (#:key import-path #:allow-other-keys)
+ ;; Tests need to write to that files.
+ (with-directory-excursion (string-append "src/" import-path)
+ (make-file-writable "testdata/TestRequireEqualUpdate.golden")
+ (make-file-writable "testdata/TestRequireEqualNoUpdate.golden"))))
+ (add-after 'check 'post-check
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ ;; Remove modified testdata just in case.
+ (delete-file-recursively "testdata")))))))
+ (propagated-inputs
+ (list go-github-com-aymanbagabas-go-udiff))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "Verify @code{.golden} file equality")
+ (description
+ "Golden files (@code{.golden}) contain the raw expected output of
+tests,which can contain control codes and escape sequences. @code{golden}
+package provides an API for comparing Golden files.")
+ (license license:expat)))
+
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 08/15] gnu: Add go-github-com-charmbracelet-x-term.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (6 preceding siblings ...)
2024-11-28 23:49 ` [bug#74495] [PATCH 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden Sharlatan Hellseher
@ 2024-11-28 23:49 ` Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 09/15] gnu: Add go-github-com-charmbracelet-lipgloss Sharlatan Hellseher
` (6 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:49 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-term): New variable.
Change-Id: I854febc3a3010f39051ee6fbd4a159993043d41e
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 81fd07f402..81dc15ae5d 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1589,6 +1589,39 @@ (define-public go-github-com-charmbracelet-x-ansi
ECMA-48} specs.")
(license license:expat)))
+(define-public go-github-com-charmbracelet-x-term
+ (package
+ (name "go-github-com-charmbracelet-x-term")
+ (version "0.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "term"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1shw55110fnn4xz80wmgr18czmiil6z1j064m90iw8c7j9llfzn5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/term"
+ #:unpack-path "github.com/charmbracelet/x"))
+ (propagated-inputs (list go-github-com-rivo-uniseg
+ go-golang-org-x-sys))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "Terminal utilities and helpers")
+ (description
+ "@code{term} provides an API for working with terminals that includes:
+@itemize
+@item Switching a terminal to the raw mode.
+@item Getting, setting and restoring the state of a terminal.
+@item Getting size of a terminal.
+@item Reading passwords from a terminal without a local echo.
+@end itemize")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-x-exp-golden
(package
(name "go-github-com-charmbracelet-x-exp-golden")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 09/15] gnu: Add go-github-com-charmbracelet-lipgloss.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (7 preceding siblings ...)
2024-11-28 23:49 ` [bug#74495] [PATCH 08/15] gnu: Add go-github-com-charmbracelet-x-term Sharlatan Hellseher
@ 2024-11-28 23:49 ` Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 10/15] gnu: Add go-github-com-charmbracelet-bubbles Sharlatan Hellseher
` (5 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:49 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-lipgloss): New variable.
Change-Id: I73050c96830025ed63be7567873f8faf7573453d
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 81dc15ae5d..7abfe589cc 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1559,6 +1559,35 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-lipgloss
+ (package
+ (name "go-github-com-charmbracelet-lipgloss")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/lipgloss")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0d1aqzsjy0mcliydbfbg223xxpf9646frbj35ac4fisdy3w3n142"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/lipgloss"))
+ (propagated-inputs
+ (list go-github-com-aymanbagabas-go-udiff
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-x-exp-golden
+ go-github-com-muesli-termenv
+ go-github-com-rivo-uniseg))
+ (home-page "https://github.com/charmbracelet/lipgloss")
+ (synopsis "Style definitions for nice terminal layouts")
+ (description
+ "Style definitions for nice terminal layouts. Built with TUIs in mind.")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-x-ansi
(package
(name "go-github-com-charmbracelet-x-ansi")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 10/15] gnu: Add go-github-com-charmbracelet-bubbles.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (8 preceding siblings ...)
2024-11-28 23:49 ` [bug#74495] [PATCH 09/15] gnu: Add go-github-com-charmbracelet-lipgloss Sharlatan Hellseher
@ 2024-11-28 23:49 ` Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 11/15] gnu: Add go-github-com-muesli-ansi Sharlatan Hellseher
` (4 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:49 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-bubbles): New variable.
Change-Id: I090db91509590ca9a8cab1a209d00bcc12b524e7
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 7abfe589cc..6d54c9efbd 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1559,6 +1559,43 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-bubbles
+ (package
+ (name "go-github-com-charmbracelet-bubbles")
+ (version "0.20.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/bubbles")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1qdcln01bq9lk6r33b8p5d5x850wgd8ddq57n4bg3xn76z2fd657"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/charmbracelet/bubbles"))
+ (propagated-inputs
+ (list go-github-com-atotto-clipboard
+ go-github-com-charmbracelet-bubbletea
+ go-github-com-charmbracelet-harmonica
+ go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-x-exp-golden
+ go-github-com-dustin-go-humanize
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-makenowjust-heredoc
+ go-github-com-mattn-go-runewidth
+ go-github-com-muesli-termenv
+ go-github-com-rivo-uniseg
+ go-github-com-sahilm-fuzzy))
+ (home-page "https://github.com/charmbracelet/bubbles")
+ (synopsis "TUI components for Bubble Tea library")
+ (description
+ "@code{bubbles} is a library that provide components for
+@@url{https://github.com/charmbracelet/bubbletea, Bubble Tea} applications.")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-lipgloss
(package
(name "go-github-com-charmbracelet-lipgloss")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 11/15] gnu: Add go-github-com-muesli-ansi.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (9 preceding siblings ...)
2024-11-28 23:49 ` [bug#74495] [PATCH 10/15] gnu: Add go-github-com-charmbracelet-bubbles Sharlatan Hellseher
@ 2024-11-28 23:49 ` Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 12/15] gnu: go-github-com-itchyny-gojq: Install the library Sharlatan Hellseher
` (3 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:49 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-github-com-muesli-ansi): New variable.
Change-Id: I3dbbd8af04373997fcb3c60872dff14ab1b2b76a
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 6d54c9efbd..a9ab207c55 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -5731,6 +5731,31 @@ (define-public go-github-com-msteinert-pam-v2
((#:import-path _ "github.com/msteinert/pam")
"github.com/msteinert/pam/v2")))))
+(define-public go-github-com-muesli-ansi
+ (package
+ (name "go-github-com-muesli-ansi")
+ (version "0.0.0-20230316100256-276c6243b2f6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/muesli/ansi")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1jr8kgn3vb72jmf4a8n52g876mfpbvk3310p8gsg7jkn338af4m9"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/muesli/ansi"))
+ (propagated-inputs
+ (list go-github-com-mattn-go-runewidth
+ go-github-com-rivo-uniseg))
+ (home-page "https://github.com/muesli/ansi")
+ (synopsis "Raw ANSI sequence helpers")
+ (description
+ "ANSI sequence helpers for working with raw ANSI sequences.")
+ (license license:expat)))
+
(define-public go-github-com-muesli-cancelreader
(package
(name "go-github-com-muesli-cancelreader")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 12/15] gnu: go-github-com-itchyny-gojq: Install the library.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (10 preceding siblings ...)
2024-11-28 23:49 ` [bug#74495] [PATCH 11/15] gnu: Add go-github-com-muesli-ansi Sharlatan Hellseher
@ 2024-11-28 23:49 ` Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 13/15] gnu: gojq: Adjust import path Sharlatan Hellseher
` (2 subsequent siblings)
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:49 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/web.scm (go-github-com-itchyny-gojq): Install the library
files instead of "gojq" binary.
[arguments]: Remove <unpack-path>, adjust <import-path>.
Change-Id: I72235e0cfeee81b0e7490ebd9d92d0d36ceb1844
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/web.scm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index d7c25e8b5b..7e355b8d77 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5605,8 +5605,7 @@ (define-public go-github-com-itchyny-gojq
(build-system go-build-system)
(arguments
(list
- #:import-path "github.com/itchyny/gojq/cmd/gojq"
- #:unpack-path "github.com/itchyny/gojq"))
+ #:import-path "github.com/itchyny/gojq"))
(inputs
(list go-github-com-google-go-cmp
go-github-com-itchyny-timefmt-go
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 13/15] gnu: gojq: Adjust import path.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (11 preceding siblings ...)
2024-11-28 23:49 ` [bug#74495] [PATCH 12/15] gnu: go-github-com-itchyny-gojq: Install the library Sharlatan Hellseher
@ 2024-11-28 23:49 ` Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 14/15] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 15/15] gnu: Add go-jqp Sharlatan Hellseher
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:49 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/web.scm (gojq) [arguments]<import-path>: Provide path to
the command source.
Change-Id: I6a4d0cbdba385460d7ab43d62fe1897922a7c7e9
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/web.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 7e355b8d77..f574c5c9bb 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5626,7 +5626,8 @@ (define-public gojq
(arguments
(ensure-keyword-arguments
(package-arguments go-github-com-itchyny-gojq)
- (list #:install-source? #f)))))
+ (list #:import-path "github.com/itchyny/gojq/cmd/gojq"
+ #:install-source? #f)))))
(define-public pup
(let ((revision "1")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 14/15] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (12 preceding siblings ...)
2024-11-28 23:49 ` [bug#74495] [PATCH 13/15] gnu: gojq: Adjust import path Sharlatan Hellseher
@ 2024-11-28 23:49 ` Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 15/15] gnu: Add go-jqp Sharlatan Hellseher
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:49 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea): Update to 1.2.3.
[propagated-inputs]: Add go-github-com-muesli-ansi,
go-github-com-muesli-cancelreader, go-github-com-charmbracelet-lipgloss,
go-github-com-charmbracelet-x-term, go-github-com-charmbracelet-x-ansi, and
go-golang-org-x-sync. Sort inputs alphabetically.
[arguments] <phases>: Fix tests that are failing due to newer version of
"go-github-com-charmbracelet-x-ansi" package.
Change-Id: Ifdb3074f342b34c07c0e7ab47341b159d1eea0c2
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang.scm | 47 +++++++++++++++++++++++++++++------------
1 file changed, 33 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 88878b6b23..b3d0c59b3e 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7032,7 +7032,7 @@ (define-public go-github-com-rivo-uniseg
(define-public go-github-com-charmbracelet-bubbletea
(package
(name "go-github-com-charmbracelet-bubbletea")
- (version "0.13.2")
+ (version "1.2.3")
(source
(origin
(method git-fetch)
@@ -7042,28 +7042,47 @@ (define-public go-github-com-charmbracelet-bubbletea
(file-name (git-file-name name version))
(sha256
(base32
- "1105cggi5fwqx69m0vrhgwx6kaw82w4ahn58sj0a81603c4yvrk0"))))
+ "0ggkl29qixgin5av1mbnwfbb31kmwpczh8pgpjsx9z277fs55mph"))))
(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"))))))))
+ #: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-mattn-go-isatty
- go-github-com-muesli-termenv
+ (list go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-x-term
+ go-github-com-containerd-console
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-mattn-go-isatty
+ go-github-com-mattn-go-isatty
go-github-com-mattn-go-runewidth
+ go-github-com-muesli-ansi
+ go-github-com-muesli-cancelreader
go-github-com-muesli-reflow
- go-github-com-lucasb-eyer-go-colorful
- go-github-com-containerd-console
+ go-github-com-muesli-termenv
go-golang-org-x-crypto
+ go-golang-org-x-sync
go-golang-org-x-sys
- go-golang-org-x-term
- go-github-com-mattn-go-isatty))
+ go-golang-org-x-term))
(home-page "https://github.com/charmbracelet/bubbletea")
(synopsis "Powerful little TUI framework")
(description
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 15/15] gnu: Add go-jqp.
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
` (13 preceding siblings ...)
2024-11-28 23:49 ` [bug#74495] [PATCH 14/15] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Sharlatan Hellseher
@ 2024-11-28 23:49 ` Sharlatan Hellseher
14 siblings, 0 replies; 67+ messages in thread
From: Sharlatan Hellseher @ 2024-11-28 23:49 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
* gnu/packages/golang-xyz.scm (go-jqp): New variable.
Change-Id: I736e039a456960e0e5864d7d197b2a6a823bbe58
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/web.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index f574c5c9bb..2439a6962f 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5629,6 +5629,45 @@ (define-public gojq
(list #:import-path "github.com/itchyny/gojq/cmd/gojq"
#:install-source? #f)))))
+(define-public go-jqp
+ (package
+ (name "go-jqp")
+ (version "0.7.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/noahgorstein/jqp")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "11xqh4113gkzp32hd4dg4cvjp40q3hxfh3889wd4bw2snl0alvcb"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.22
+ #:embed-files #~(list ".*.xml")
+ #:install-source? #f
+ #:import-path "github.com/noahgorstein/jqp"))
+ (inputs
+ (list go-github-com-spf13-viper
+ go-github-com-spf13-cobra
+ go-github-com-muesli-termenv
+ go-github-com-itchyny-gojq
+ go-github-com-itchyny-timefmt-go
+ go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-bubbletea
+ go-github-com-charmbracelet-bubbles
+ go-github-com-atotto-clipboard
+ go-github-com-alecthomas-chroma-v2))
+ (home-page "https://github.com/noahgorstein/jqp")
+ (synopsis "TUI playground to experiment with jq")
+ (description
+ "This package provides an interactive TUI to explor the @code{jq} command
+line utility. The command accepts an optional query argument which will be
+executed against the input JSON or newline-delimited JSON (NDJSON).")
+ (license license:expat)))
+
(define-public pup
(let ((revision "1")
(commit "681d7bb639334bf485476f5872c5bdab10931f9a"))
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (19 preceding siblings ...)
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
` (13 more replies)
2024-12-01 7:34 ` [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
21 siblings, 14 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-github-com-atotto-clipboard): New variable.
Change-Id: I4a871983f564034045f4b2ba77f2453cfce5cb2b
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 37 ++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 1dc7849edb..daafc1285c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -85,7 +85,9 @@ (define-module (gnu packages golang-xyz)
#:use-module (gnu packages golang-maths)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages linux)
- #:use-module (gnu packages specifications))
+ #:use-module (gnu packages specifications)
+ #:use-module (gnu packages xdisorg)
+ #:use-module (gnu packages xorg))
;;; Commentary:
;;;
@@ -981,6 +983,39 @@ (define-public go-github-com-asaskevich-govalidator
@url{https://github.com/chriso/validator.js,validator.js}.")
(license license:expat)))
+(define-public go-github-com-atotto-clipboard
+ (package
+ (name "go-github-com-atotto-clipboard")
+ (version "0.1.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/atotto/clipboard")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ycd8zkgsq9iil9svhlwvhcqwcd7vik73nf8rnyfnn10gpjx97k5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/atotto/clipboard"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'start-xorg-server
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; The test suite requires a running X server.
+ (system "Xvfb :1 &")
+ (setenv "DISPLAY" ":1"))))))
+ (native-inputs
+ (list xorg-server-for-tests))
+ (propagated-inputs (list xclip))
+ (home-page "https://github.com/atotto/clipboard")
+ (synopsis "Clipboard for Golang")
+ (description
+ "@code{clipboard} provides copying and pasting to the clipboard for Go.")
+ (license license:bsd-3)))
+
(define-public go-github-com-audriusbutkevicius-recli
(package
(name "go-github-com-audriusbutkevicius-recli")
base-commit: 10e99250f49d40563619c849b0d4ada31f985991
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 03/15] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
` (12 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-github-com-aymanbagabas-go-udiff): New variable.
Change-Id: Icac934589b041c9b3b5db0114173d25d0c3f4c34
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index daafc1285c..913b741871 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1159,6 +1159,34 @@ (define-public go-github-com-aymanbagabas-go-osc52-v2
clipboard.")
(license license:expat)))
+(define-public go-github-com-aymanbagabas-go-udiff
+ (package
+ (name "go-github-com-aymanbagabas-go-udiff")
+ (version "0.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aymanbagabas/go-udiff")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "09p17r8s5flhq6p69z08345q0y99dpb0yyashlwpgxn45xir7y6g"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/aymanbagabas/go-udiff"))
+ (home-page "https://github.com/aymanbagabas/go-udiff")
+ (synopsis "Diffing library for Golang")
+ (description
+ "@code{udiff} (micro-diff, or µDiff) is a library that implements the
+@url{http://www.xmailserver.org/diff2.pdf, Myers' diffing algorithm}. It aims to
+provide a minimal API to compute and apply diffs with zero dependencies. It also
+supports generating diffs in the
+@url{https://www.gnu.org/software/diffutils/manual/html_node/Unified-Format.html,
+Unified Format}.")
+ (license license:expat)))
+
(define-public go-github-com-benbjohnson-clock
(package
(name "go-github-com-benbjohnson-clock")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 03/15] gnu: Add go-github-com-makenowjust-heredoc.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 04/15] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
` (11 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-github-com-makenowjust-heredoc): New variable.
Change-Id: I686dfd6a798da764b004a53a562ca788e70f8cd5
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 913b741871..c3342c91b0 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4916,6 +4916,30 @@ (define-public go-github-com-logrusorgru-aurora-v4
(native-inputs
(list go-github-com-stretchr-testify))))
+(define-public go-github-com-makenowjust-heredoc
+ (package
+ (name "go-github-com-makenowjust-heredoc")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/makenowjust/heredoc")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "18f21zm8n2wlnkz1ylw8rcxmqxyv2rlz8749yfqggm2m0m2884pj"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/MakeNowJust/heredoc"))
+ (home-page "https://github.com/MakeNowJust/heredoc")
+ (synopsis "Here-documents with indent")
+ (description
+ "This package implements a functionality of creating here-documents from
+raw strings.")
+ (license license:expat)))
+
(define-public go-github-com-marcinbor85-gohex
;; No release, see <https://github.com/marcinbor85/gohex/issues/5>.
(let ((commit "baab2527a9a2a4abb3dc06baabedfa5e0268b8d8")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 04/15] gnu: Add go-github-com-kylelemons-godebug-pretty.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 03/15] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 05/15] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
` (10 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang.scm (go-github-com-kylelemons-godebug-pretty): New variable.
Change-Id: Icd7d5fd70cf56d1ca74e9a2cfb929a3344128ba7
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 6b78b19cc5..541ac453d4 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4722,6 +4722,16 @@ (define-public go-github-com-kylelemons-godebug
representation suitable for computing diffs.")
(license license:asl2.0)))
+;; TODO: Merge with go-github-com-kylelemons-godebug and provide both module;
+;; for go-team.
+(define-public go-github-com-kylelemons-godebug-pretty
+ (package
+ (inherit go-github-com-kylelemons-godebug)
+ (name "go-github-com-kylelemons-godebug-pretty")
+ (arguments
+ '(#:import-path "github.com/kylelemons/godebug/pretty"
+ #:unpack-path "github.com/kylelemons/godebug"))))
+
(define-public go-github-com-kr-text
(package
(name "go-github-com-kr-text")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 05/15] gnu: Add go-github-com-sahilm-fuzzy.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (2 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 04/15] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 06/15] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
` (9 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-github-com-sahilm-fuzzy): New variable.
Change-Id: Iebf4f8c3848e1e08b2860ac69a5a8d816ac260df
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index c3342c91b0..d00ce6c550 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -6689,6 +6689,32 @@ (define-public go-github-com-ryanuber-columnize
"This package implements column-formatted output for Golang.")
(license license:expat)))
+(define-public go-github-com-sahilm-fuzzy
+ (package
+ (name "go-github-com-sahilm-fuzzy")
+ (version "0.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sahilm/fuzzy")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "15j95gm7hcmg09x1b39vc4il8bryv4v0yljvvyq5vyc6iq66qrbz"))))
+ (build-system go-build-system)
+ (native-inputs
+ (list go-github-com-kylelemons-godebug
+ go-github-com-kylelemons-godebug-pretty))
+ (arguments
+ (list #:import-path "github.com/sahilm/fuzzy"))
+ (home-page "https://github.com/sahilm/fuzzy")
+ (synopsis "Fuzzy string matching for Golang")
+ (description
+ "@code{fuzzy} provides fuzzy string matching optimized for filenames and code
+symbols in the style of Sublime Text, VSCode, @code{IntelliJ} IDEA et al.")
+ (license license:expat)))
+
(define-public go-github-com-schollz-progressbar-v3
(package
(name "go-github-com-schollz-progressbar-v3")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 06/15] gnu: Add go-github-com-charmbracelet-x-ansi.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (3 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 05/15] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
` (8 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-ansi): New variable.
Change-Id: I1451ae9953bc87475413b83bb636a2df14ddc70c
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index d00ce6c550..729d4020b9 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1582,6 +1582,36 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-x-ansi
+ (package
+ (name "go-github-com-charmbracelet-x-ansi")
+ (version "0.5.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "ansi"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/ansi"
+ #:unpack-path "github.com/charmbracelet/x"))
+ (propagated-inputs
+ (list go-github-com-lucasb-eyer-go-colorful
+ go-github-com-rivo-uniseg))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "ANSI escape sequence parser and definitions")
+ (description
+ "@code{ansi} defines common ANSI escape sequences based on the
+@url{https://ecma-international.org/publications-and-standards/standards/ecma-48/,
+ECMA-48} specs.")
+ (license license:expat)))
+
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (4 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 06/15] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 08/15] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
` (7 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-exp-golden): New variable.
Change-Id: I7fa815433d9a83e4562bdc769312dd05e0a298da
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 729d4020b9..3002144ffd 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1612,6 +1612,48 @@ (define-public go-github-com-charmbracelet-x-ansi
ECMA-48} specs.")
(license license:expat)))
+(define-public go-github-com-charmbracelet-x-exp-golden
+ (package
+ (name "go-github-com-charmbracelet-x-exp-golden")
+ (version "0.0.0-20241121171228-5bc00623ea2f")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "exp/golden"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/exp/golden"
+ #:unpack-path "github.com/charmbracelet/x/"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda* (#:key import-path #:allow-other-keys)
+ ;; Tests need to write to that files.
+ (with-directory-excursion (string-append "src/" import-path)
+ (make-file-writable "testdata/TestRequireEqualUpdate.golden")
+ (make-file-writable "testdata/TestRequireEqualNoUpdate.golden"))))
+ (add-after 'check 'post-check
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ ;; Remove modified testdata just in case.
+ (delete-file-recursively "testdata")))))))
+ (propagated-inputs
+ (list go-github-com-aymanbagabas-go-udiff))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "Verify @code{.golden} file equality")
+ (description
+ "Golden files (@code{.golden}) contain the raw expected output of
+tests,which can contain control codes and escape sequences. @code{golden}
+package provides an API for comparing Golden files.")
+ (license license:expat)))
+
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 08/15] gnu: Add go-github-com-charmbracelet-x-term.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (5 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 09/15] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
` (6 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-term): New variable.
Change-Id: I854febc3a3010f39051ee6fbd4a159993043d41e
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 3002144ffd..89c06156a2 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1612,6 +1612,39 @@ (define-public go-github-com-charmbracelet-x-ansi
ECMA-48} specs.")
(license license:expat)))
+(define-public go-github-com-charmbracelet-x-term
+ (package
+ (name "go-github-com-charmbracelet-x-term")
+ (version "0.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "term"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1shw55110fnn4xz80wmgr18czmiil6z1j064m90iw8c7j9llfzn5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/term"
+ #:unpack-path "github.com/charmbracelet/x"))
+ (propagated-inputs (list go-github-com-rivo-uniseg
+ go-golang-org-x-sys))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "Terminal utilities and helpers")
+ (description
+ "@code{term} provides an API for working with terminals that includes:
+@itemize
+@item Switching a terminal to the raw mode.
+@item Getting, setting and restoring the state of a terminal.
+@item Getting size of a terminal.
+@item Reading passwords from a terminal without a local echo.
+@end itemize")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-x-exp-golden
(package
(name "go-github-com-charmbracelet-x-exp-golden")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 09/15] gnu: Add go-github-com-charmbracelet-lipgloss.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (6 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 08/15] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 10/15] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
` (5 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-lipgloss): New variable.
Change-Id: I73050c96830025ed63be7567873f8faf7573453d
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 89c06156a2..e7979387e3 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1582,6 +1582,35 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-lipgloss
+ (package
+ (name "go-github-com-charmbracelet-lipgloss")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/lipgloss")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0d1aqzsjy0mcliydbfbg223xxpf9646frbj35ac4fisdy3w3n142"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/lipgloss"))
+ (propagated-inputs
+ (list go-github-com-aymanbagabas-go-udiff
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-x-exp-golden
+ go-github-com-muesli-termenv
+ go-github-com-rivo-uniseg))
+ (home-page "https://github.com/charmbracelet/lipgloss")
+ (synopsis "Style definitions for nice terminal layouts")
+ (description
+ "Style definitions for nice terminal layouts. Built with TUIs in mind.")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-x-ansi
(package
(name "go-github-com-charmbracelet-x-ansi")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 10/15] gnu: Add go-github-com-charmbracelet-bubbles.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (7 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 09/15] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 11/15] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
` (4 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-bubbles): New variable.
Change-Id: I090db91509590ca9a8cab1a209d00bcc12b524e7
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index e7979387e3..db11b2b542 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1582,6 +1582,43 @@ (define-public go-github-com-cheggaaa-pb-v3
(modify-inputs (package-propagated-inputs go-github-com-cheggaaa-pb)
(append go-github-com-vividcortex-ewma)))))
+(define-public go-github-com-charmbracelet-bubbles
+ (package
+ (name "go-github-com-charmbracelet-bubbles")
+ (version "0.20.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/bubbles")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1qdcln01bq9lk6r33b8p5d5x850wgd8ddq57n4bg3xn76z2fd657"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/charmbracelet/bubbles"))
+ (propagated-inputs
+ (list go-github-com-atotto-clipboard
+ go-github-com-charmbracelet-bubbletea
+ go-github-com-charmbracelet-harmonica
+ go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-x-exp-golden
+ go-github-com-dustin-go-humanize
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-makenowjust-heredoc
+ go-github-com-mattn-go-runewidth
+ go-github-com-muesli-termenv
+ go-github-com-rivo-uniseg
+ go-github-com-sahilm-fuzzy))
+ (home-page "https://github.com/charmbracelet/bubbles")
+ (synopsis "TUI components for Bubble Tea library")
+ (description
+ "@code{bubbles} is a library that provide components for
+@@url{https://github.com/charmbracelet/bubbletea, Bubble Tea} applications.")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-lipgloss
(package
(name "go-github-com-charmbracelet-lipgloss")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 11/15] gnu: Add go-github-com-muesli-ansi.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (8 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 10/15] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 12/15] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
` (3 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-github-com-muesli-ansi): New variable.
Change-Id: I3dbbd8af04373997fcb3c60872dff14ab1b2b76a
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index db11b2b542..d9a3562061 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -5754,6 +5754,31 @@ (define-public go-github-com-msteinert-pam-v2
((#:import-path _ "github.com/msteinert/pam")
"github.com/msteinert/pam/v2")))))
+(define-public go-github-com-muesli-ansi
+ (package
+ (name "go-github-com-muesli-ansi")
+ (version "0.0.0-20230316100256-276c6243b2f6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/muesli/ansi")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1jr8kgn3vb72jmf4a8n52g876mfpbvk3310p8gsg7jkn338af4m9"))))
+ (build-system go-build-system)
+ (arguments
+ (list #:import-path "github.com/muesli/ansi"))
+ (propagated-inputs
+ (list go-github-com-mattn-go-runewidth
+ go-github-com-rivo-uniseg))
+ (home-page "https://github.com/muesli/ansi")
+ (synopsis "Raw ANSI sequence helpers")
+ (description
+ "ANSI sequence helpers for working with raw ANSI sequences.")
+ (license license:expat)))
+
(define-public go-github-com-muesli-cancelreader
(package
(name "go-github-com-muesli-cancelreader")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 12/15] gnu: go-github-com-itchyny-gojq: Install the library.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (9 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 11/15] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 13/15] gnu: gojq: Adjust import and unpack paths Artyom V. Poptsov
` (2 subsequent siblings)
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/web.scm (go-github-com-itchyny-gojq): Install the library
files instead of "gojq" binary.
[arguments]: Remove <unpack-path>, adjust <import-path>.
Change-Id: I72235e0cfeee81b0e7490ebd9d92d0d36ceb1844
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/web.scm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index d7c25e8b5b..7e355b8d77 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5605,8 +5605,7 @@ (define-public go-github-com-itchyny-gojq
(build-system go-build-system)
(arguments
(list
- #:import-path "github.com/itchyny/gojq/cmd/gojq"
- #:unpack-path "github.com/itchyny/gojq"))
+ #:import-path "github.com/itchyny/gojq"))
(inputs
(list go-github-com-google-go-cmp
go-github-com-itchyny-timefmt-go
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 13/15] gnu: gojq: Adjust import and unpack paths.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (10 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 12/15] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 14/15] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 15/15] gnu: Add go-jqp Artyom V. Poptsov
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/web.scm (gojq) [arguments]<import-path>: Provide path to
the command source.
<unpack-path>: Set to "github.com/itchyny/gojq".
Change-Id: I6a4d0cbdba385460d7ab43d62fe1897922a7c7e9
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/web.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 7e355b8d77..cfebf7785a 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -67,6 +67,7 @@
;;; Copyright © 2023 Evgeny Pisemsky <mail@pisemsky.site>
;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -5626,7 +5627,9 @@ (define-public gojq
(arguments
(ensure-keyword-arguments
(package-arguments go-github-com-itchyny-gojq)
- (list #:install-source? #f)))))
+ (list #:import-path "github.com/itchyny/gojq/cmd/gojq"
+ #:unpack-path "github.com/itchyny/gojq"
+ #:install-source? #f)))))
(define-public pup
(let ((revision "1")
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 14/15] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (11 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 13/15] gnu: gojq: Adjust import and unpack paths Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 15/15] gnu: Add go-jqp Artyom V. Poptsov
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang.scm (go-github-com-charmbracelet-bubbletea): Update to 1.2.3.
[propagated-inputs]: Add go-github-com-muesli-ansi,
go-github-com-muesli-cancelreader, go-github-com-charmbracelet-lipgloss,
go-github-com-charmbracelet-x-term, go-github-com-charmbracelet-x-ansi, and
go-golang-org-x-sync. Sort inputs alphabetically.
[arguments] <phases>: Fix tests that are failing due to newer version of
"go-github-com-charmbracelet-x-ansi" package.
Change-Id: Ifdb3074f342b34c07c0e7ab47341b159d1eea0c2
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang.scm | 47 +++++++++++++++++++++++++++++------------
1 file changed, 33 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 541ac453d4..95aa1eb8de 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7007,7 +7007,7 @@ (define-public go-github-com-rivo-uniseg
(define-public go-github-com-charmbracelet-bubbletea
(package
(name "go-github-com-charmbracelet-bubbletea")
- (version "0.13.2")
+ (version "1.2.3")
(source
(origin
(method git-fetch)
@@ -7017,28 +7017,47 @@ (define-public go-github-com-charmbracelet-bubbletea
(file-name (git-file-name name version))
(sha256
(base32
- "1105cggi5fwqx69m0vrhgwx6kaw82w4ahn58sj0a81603c4yvrk0"))))
+ "0ggkl29qixgin5av1mbnwfbb31kmwpczh8pgpjsx9z277fs55mph"))))
(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"))))))))
+ #: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-mattn-go-isatty
- go-github-com-muesli-termenv
+ (list go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-x-ansi
+ go-github-com-charmbracelet-x-term
+ go-github-com-containerd-console
+ go-github-com-lucasb-eyer-go-colorful
+ go-github-com-mattn-go-isatty
+ go-github-com-mattn-go-isatty
go-github-com-mattn-go-runewidth
+ go-github-com-muesli-ansi
+ go-github-com-muesli-cancelreader
go-github-com-muesli-reflow
- go-github-com-lucasb-eyer-go-colorful
- go-github-com-containerd-console
+ go-github-com-muesli-termenv
go-golang-org-x-crypto
+ go-golang-org-x-sync
go-golang-org-x-sys
- go-golang-org-x-term
- go-github-com-mattn-go-isatty))
+ go-golang-org-x-term))
(home-page "https://github.com/charmbracelet/bubbletea")
(synopsis "Powerful little TUI framework")
(description
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH v3 15/15] gnu: Add go-jqp.
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
` (12 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 14/15] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
@ 2024-12-01 7:23 ` Artyom V. Poptsov
13 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:23 UTC (permalink / raw)
To: 74495; +Cc: Artyom V. Poptsov, Sharlatan Hellseher
* gnu/packages/golang-xyz.scm (go-jqp): New variable.
Change-Id: I736e039a456960e0e5864d7d197b2a6a823bbe58
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/web.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index cfebf7785a..b10c03a7f4 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5631,6 +5631,45 @@ (define-public gojq
#:unpack-path "github.com/itchyny/gojq"
#:install-source? #f)))))
+(define-public go-jqp
+ (package
+ (name "go-jqp")
+ (version "0.7.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/noahgorstein/jqp")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "11xqh4113gkzp32hd4dg4cvjp40q3hxfh3889wd4bw2snl0alvcb"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.22
+ #:embed-files #~(list ".*.xml")
+ #:install-source? #f
+ #:import-path "github.com/noahgorstein/jqp"))
+ (inputs
+ (list go-github-com-spf13-viper
+ go-github-com-spf13-cobra
+ go-github-com-muesli-termenv
+ go-github-com-itchyny-gojq
+ go-github-com-itchyny-timefmt-go
+ go-github-com-charmbracelet-lipgloss
+ go-github-com-charmbracelet-bubbletea
+ go-github-com-charmbracelet-bubbles
+ go-github-com-atotto-clipboard
+ go-github-com-alecthomas-chroma-v2))
+ (home-page "https://github.com/noahgorstein/jqp")
+ (synopsis "TUI playground to experiment with jq")
+ (description
+ "This package provides an interactive TUI to explor the @code{jq} command
+line utility. The command accepts an optional query argument which will be
+executed against the input JSON or newline-delimited JSON (NDJSON).")
+ (license license:expat)))
+
(define-public pup
(let ((revision "1")
(commit "681d7bb639334bf485476f5872c5bdab10931f9a"))
--
2.46.0
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp.
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
` (20 preceding siblings ...)
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
@ 2024-12-01 7:34 ` Artyom V. Poptsov
21 siblings, 0 replies; 67+ messages in thread
From: Artyom V. Poptsov @ 2024-12-01 7:34 UTC (permalink / raw)
To: 74495
[-- Attachment #1: Type: text/plain, Size: 1787 bytes --]
Pushed the v3 of the patchset (that includes the changes suggested by
Sharlatan Hellseher) to the "master" branch as the following commits:
--8<---------------cut here---------------start------------->8---
aa40c94446c4ddc52cf9d7e3a440695707f6f534 gnu: Add go-jqp.
25a33a64b9a3b020b5671a06686c6caee30aac95 gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3.
6aad5262d69499b1d7577e1b62cb0ce17b10fa5d gnu: gojq: Adjust import and unpack paths.
3ba6127415374e017fc411e5b6dcc0feaebd558e gnu: go-github-com-itchyny-gojq: Install the library.
47e941cb802eb0b5668cc5e881bf143e14ddd067 gnu: Add go-github-com-muesli-ansi.
689d2ac36c56c1573cd7418efe7676988f118024 gnu: Add go-github-com-charmbracelet-bubbles.
9874cc55817c9147fc55ad4b938914b7b836004c gnu: Add go-github-com-charmbracelet-lipgloss.
6152dc095b85d2a01d43a5ab36142af41354d5a9 gnu: Add go-github-com-charmbracelet-x-term.
4fe2cb289fc545e7fc19cc87fcac8d2d047201d4 gnu: Add go-github-com-charmbracelet-x-exp-golden.
222f672ca3e798669b1d739bd35bff7cf028bc29 gnu: Add go-github-com-charmbracelet-x-ansi.
7c240b9838fbfd19796fee6ce6e6f4c778a00742 gnu: Add go-github-com-sahilm-fuzzy.
f9f6ca8c54d48b4a53e86568902806999a04232e gnu: Add go-github-com-kylelemons-godebug-pretty.
703951b157db1c413f8718644d3c1e20f5ec5e1b gnu: Add go-github-com-makenowjust-heredoc.
215ae40b5d953a98b4c71f772c515adf5ad8ddf5 gnu: Add go-github-com-aymanbagabas-go-udiff.
58344dfb0ec1972946f1a9f38880e2875287fad6 gnu: Add go-github-com-atotto-clipboard.
--8<---------------cut here---------------end--------------->8---
- avp
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 869 bytes --]
^ permalink raw reply [flat|nested] 67+ messages in thread
end of thread, other threads:[~2024-12-01 7:36 UTC | newest]
Thread overview: 67+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-23 18:27 [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 03/16] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 04/16] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 05/16] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 06/16] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 07/16] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 08/16] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 09/16] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 10/16] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 11/16] gnu: gojq: Install the binary only Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 13/16] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 14/16] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
2024-11-23 18:28 ` [bug#74495] [PATCH 16/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
2024-11-23 22:32 ` [bug#74495] [PATCH 00/16] " Sharlatan Hellseher
2024-11-24 10:27 ` [bug#74495] [PATCH v2 01/16] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 02/16] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 03/16] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 04/16] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 05/16] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 06/16] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 07/16] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 08/16] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 09/16] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 10/16] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 11/16] gnu: gojq: Install the binary only Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 12/16] gnu: go-github-com-charmbracelet-bubbletea: Remove input labels Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 13/16] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 14/16] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 15/16] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
2024-11-24 10:27 ` [bug#74495] [PATCH v2 16/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
2024-11-26 19:09 ` [bug#74495] [PATCH 00/16] " Artyom V. Poptsov
2024-11-28 23:48 ` [bug#74495] [PATCH 00/15] gnu: Add go-jqp Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 01/15] gnu: Add go-github-com-atotto-clipboard Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 03/15] gnu: Add go-github-com-makenowjust-heredoc Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 04/15] gnu: Add go-github-com-kylelemons-godebug-pretty Sharlatan Hellseher
2024-11-28 23:48 ` [bug#74495] [PATCH 05/15] gnu: Add go-github-com-sahilm-fuzzy Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 06/15] gnu: Add go-github-com-charmbracelet-x-ansi Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 08/15] gnu: Add go-github-com-charmbracelet-x-term Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 09/15] gnu: Add go-github-com-charmbracelet-lipgloss Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 10/15] gnu: Add go-github-com-charmbracelet-bubbles Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 11/15] gnu: Add go-github-com-muesli-ansi Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 12/15] gnu: go-github-com-itchyny-gojq: Install the library Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 13/15] gnu: gojq: Adjust import path Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 14/15] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Sharlatan Hellseher
2024-11-28 23:49 ` [bug#74495] [PATCH 15/15] gnu: Add go-jqp Sharlatan Hellseher
2024-12-01 7:23 ` [bug#74495] [PATCH v3 01/15] gnu: Add go-github-com-atotto-clipboard Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 02/15] gnu: Add go-github-com-aymanbagabas-go-udiff Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 03/15] gnu: Add go-github-com-makenowjust-heredoc Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 04/15] gnu: Add go-github-com-kylelemons-godebug-pretty Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 05/15] gnu: Add go-github-com-sahilm-fuzzy Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 06/15] gnu: Add go-github-com-charmbracelet-x-ansi Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 08/15] gnu: Add go-github-com-charmbracelet-x-term Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 09/15] gnu: Add go-github-com-charmbracelet-lipgloss Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 10/15] gnu: Add go-github-com-charmbracelet-bubbles Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 11/15] gnu: Add go-github-com-muesli-ansi Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 12/15] gnu: go-github-com-itchyny-gojq: Install the library Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 13/15] gnu: gojq: Adjust import and unpack paths Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 14/15] gnu: go-github-com-charmbracelet-bubbletea: Update to 1.2.3 Artyom V. Poptsov
2024-12-01 7:23 ` [bug#74495] [PATCH v3 15/15] gnu: Add go-jqp Artyom V. Poptsov
2024-12-01 7:34 ` [bug#74495] [PATCH 00/16] gnu: Add go-github-com-noahgorstein-jqp Artyom V. Poptsov
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.