gnu: Add go-chroma.

* gnu/packages/golang-xyz.scm (go-chroma): New variable.

Change-Id: Idb13913bc51ac37fb9fa8ce315aebdc014e53b10
This commit is contained in:
Sharlatan Hellseher 2024-07-06 22:27:09 +01:00
parent c7cf66fb40
commit 4587047571
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -5101,6 +5101,40 @@ (define-public go-gopkg-in-yaml-v2
;;; 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)