1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-16 12:00:35 +02:00

gnu: go-chroma: Inherit from library.

Reported by Saku Laesvuori <saku@laesvuori.fi> in #74588.

* gnu/packages/golang-xyz.scm (go-chroma): Inherit from
go-github-com-alecthomas-chroma-v2.
[arguments]: Set <unpack-path> and <import-path> to build the binary.
[native-inputs]: Remove go-github-com-alecthomas-chroma-v2.

Change-Id: Iaa48b2880843e9df6a35b534578080c91c24d2a5
This commit is contained in:
Sharlatan Hellseher 2024-11-28 22:31:28 +00:00
parent 294386674c
commit cf16dcb95f
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -8399,36 +8399,22 @@ library.")
(define-public go-chroma (define-public go-chroma
(package (package
(inherit go-github-com-alecthomas-chroma-v2)
(name "go-chroma") (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 (arguments
(list (list
#:install-source? #f #:install-source? #f
#:import-path "github.com/alecthomas/chroma/cmd/chroma")) #:import-path "github.com/alecthomas/chroma/cmd/chroma"
#:unpack-path "github.com/alecthomas/chroma"))
(native-inputs (native-inputs
(list go-github-com-alecthomas-assert-v2 (list go-github-com-alecthomas-assert-v2
go-github-com-alecthomas-chroma-v2
go-github-com-alecthomas-kong go-github-com-alecthomas-kong
go-github-com-mattn-go-colorable go-github-com-mattn-go-colorable
go-github-com-mattn-go-isatty)) go-github-com-mattn-go-isatty))
(home-page "https://github.com/alecthomas/chroma")
(synopsis "General purpose syntax highlighter in pure Golang")
(description (description
(string-append (package-description go-github-com-alecthomas-chroma-v2) (string-append (package-description go-github-com-alecthomas-chroma-v2)
" This package provides an command line interface (CLI) " This package provides an command line interface (CLI)
tool.")) tool."))))
(license license:asl2.0)))
(define-public go-hclogvet (define-public go-hclogvet
(package (package