mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 20:10:39 +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:
parent
294386674c
commit
cf16dcb95f
1 changed files with 4 additions and 18 deletions
|
@ -8399,36 +8399,22 @@ library.")
|
|||
|
||||
(define-public go-chroma
|
||||
(package
|
||||
(inherit go-github-com-alecthomas-chroma-v2)
|
||||
(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
|
||||
#: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
|
||||
(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)))
|
||||
tool."))))
|
||||
|
||||
(define-public go-hclogvet
|
||||
(package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue