guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 0d1fab26080d343bc9d71969c8747c532ed4e429
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Sep 11 13:29:10 2025 +0100
gnu: go-github-com-alecthomas-chroma-v2: Update to 2.20.0.
* gnu/packages/golang-xyz.scm (go-github-com-alecthomas-chroma-v2): Update
to 2.20.0.
[source] <snippet>: Remove submodules with their own go.mod files.
[arguments] <phases>: Remove 'remove-failing-testdata-and-cmd-files.
Use default 'check.
Change-Id: I651bf6e4418fe8467233ab68bda9f38fa88b3f01
---
gnu/packages/golang-xyz.scm | 35 ++++++++++++++---------------------
1 file changed, 14 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index e0493d3b35..bc323e29a1 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1139,7 +1139,7 @@ syntax highlighted HTML, ANSI-coloured text, etc.")
(package
(inherit go-github-com-alecthomas-chroma)
(name "go-github-com-alecthomas-chroma-v2")
- (version "2.14.0")
+ (version "2.20.0")
(source
(origin
(method git-fetch)
@@ -1148,30 +1148,23 @@ syntax highlighted HTML, ANSI-coloured text, etc.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1qgr4gywjks869sc85wb8nby612b8wvsa1dwpsbanjsljq7wq7mp"))))
+ (base32 "05w4hnfcxqdlsz7mkc0m3jbp1aj67wzyhq5jh8ldfgnyjnlafia3"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ ;; Submodules with their own go.mod files and packaged separately:
+ ;;
+ ;; - github.com/alecthomas/chroma/v2/cmd/chroma
+ ;; - github.com/alecthomas/chroma/v2/cmd/chromad
+ (delete-file-recursively "cmd")))))
(arguments
(list
- #:import-path "github.com/alecthomas/chroma/v2"
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'remove-failing-testdata-and-cmd-files
- (lambda* (#:key import-path #:allow-other-keys)
- (with-directory-excursion (string-append "src/" import-path)
- (for-each delete-file-recursively
- (list
"lexers/testdata/python2/test_complex_file1.actual"
- ;; Executable is packed as separate package.
- "cmd")))))
- ;; XXX: Replace when go-build-system supports nested path.
- (replace 'check
- (lambda* (#:key import-path tests? #:allow-other-keys)
- (when tests?
- (with-directory-excursion (string-append "src/" import-path)
- (invoke "go" "test" "-v" "./..."))))))))
- (propagated-inputs
- (list go-github-com-dlclark-regexp2))
+ #:import-path "github.com/alecthomas/chroma/v2"))
(native-inputs
(list go-github-com-alecthomas-assert-v2
- go-github-com-alecthomas-repr))))
+ go-github-com-alecthomas-repr))
+ (propagated-inputs
+ (list go-github-com-dlclark-regexp2))))
(define-public go-github-com-alecthomas-colour
(package