sharlatan pushed a commit to branch master
in repository guix.

commit 458704757143224dcc4bd650a5092286cca28b13
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sat Jul 6 22:27:09 2024 +0100

    gnu: Add go-chroma.
    
    * gnu/packages/golang-xyz.scm (go-chroma): New variable.
    
    Change-Id: Idb13913bc51ac37fb9fa8ce315aebdc014e53b10
---
 gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index dfaedd604a..7f40c856dc 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -5101,6 +5101,40 @@ values.")
 ;;; Executables:
 ;;;
 
+(define-public go-chroma
+  (package
+    (name "go-chroma")
+    (version "2.14.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/alecthomas/chroma";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1qgr4gywjks869sc85wb8nby612b8wvsa1dwpsbanjsljq7wq7mp"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go go-1.19
+      #:install-source? #f
+      #:import-path "github.com/alecthomas/chroma/cmd/chroma"))
+    (native-inputs
+     (list go-github-com-alecthomas-assert-v2
+           go-github-com-alecthomas-chroma-v2
+           go-github-com-alecthomas-kong
+           go-github-com-mattn-go-colorable
+           go-github-com-mattn-go-isatty))
+    (home-page "https://github.com/alecthomas/chroma";)
+    (synopsis "General purpose syntax highlighter in pure Golang")
+    (description
+     (string-append (package-description go-github-com-alecthomas-chroma-v2)
+                    "  This package provides an command line interface (CLI)
+tool."))
+    (license license:asl2.0)))
+
 (define-public go-hclogvet
   (package
     (inherit go-github-com-hashicorp-go-hclog)

Reply via email to