From 458704757143224dcc4bd650a5092286cca28b13 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 6 Jul 2024 22:27:09 +0100 Subject: [PATCH] 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 @@ (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)