gitea-markdown: Käytä Guixin go-chroma-pakettia

This commit is contained in:
Saku Laesvuori 2025-02-19 11:21:16 +02:00
parent 74f5ea97fa
commit e2c9a62149
2 changed files with 1 additions and 46 deletions

View File

@ -1,14 +1,11 @@
(define-module (data-gitea-markdown-package)
#:use-module (guix)
#:use-module (guix build-system haskell)
#:use-module (guix build-system go)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-xyz)
#:use-module (gnu packages golang-check)
#:use-module (gnu packages haskell-web)
#:use-module (gnu packages haskell-xyz))
@ -42,45 +39,3 @@
(synopsis "")
(description "")
(license license:agpl3+)))
(define go-chroma
(package
(inherit go-github-com-alecthomas-chroma)
(name "go-chroma")
(native-inputs
(list go-github-com-alecthomas-kong
go-github-com-stretchr-testify
go-github-com-dlclark-regexp2
go-github-com-mattn-go-colorable
go-github-com-mattn-go-isatty
))
(arguments
(list
#:import-path "github.com/alecthomas/chroma/cmd/chroma"
#:unpack-path "github.com/alecthomas/chroma"))))
(define-public go-github-com-alecthomas-kong
(package
(name "go-github-com-alecthomas-kong")
(version "0.2.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alecthomas/kong")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0lv8xk71p5729igwmp6slhmf9x1g5z3zmkfx1mg1y2spn2ck4q7l"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/alecthomas/kong"))
(propagated-inputs
(list go-github-com-pkg-errors
go-github-com-stretchr-testify))
(home-page "https://github.com/alecthomas/kong")
(synopsis "Kong is a command-line parser for Go")
(description
"Package kong aims to support arbitrarily complex command-line structures with as
little developer effort as possible.")
(license license:expat)))

View File

@ -3,7 +3,7 @@
(url "https://git.savannah.gnu.org/git/guix.git")
(branch "master")
(commit
"faf8ba9b43323dc61988a368690b20008611fc87")
"27ae140024b6d05506cdf0d9fd5b91c25466f295")
(introduction
(make-channel-introduction
"9edb3f66fd807b096b48283debdcddccfea34bad"