gnu: Add go-github-com-goccmack-gocc.

* gnu/packages/golang-build.scm (go-github-com-goccmack-gocc): New variable.

Change-Id: Ia81fe771b6acd086d5ecfc194f6f02cd44b7b6dc
This commit is contained in:
Sharlatan Hellseher 2024-12-12 13:56:40 +00:00
parent d7e211ffb8
commit 5299c6f3a1
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -59,6 +59,37 @@ (define-module (gnu packages golang-build)
;;;
;;; Code:
(define-public go-github-com-goccmack-gocc
(package
(name "go-github-com-goccmack-gocc")
(version "0.0.0-20230228185258-2292f9e40198")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/goccmack/gocc")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ah1z1bmn9y9sbh2z1jxsjgsrv1rfrzzzi4c4nq646z2n25c2x8s"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/goccmack/gocc"
;; Test requiring gocc in PATH.
#:test-flags #~(list "-skip" "TestEmptyKeyword")))
(propagated-inputs
(list go-golang-org-x-mod))
(home-page "https://github.com/goccmack/gocc")
(synopsis "Parser/Scanner Generator")
(description
"Gocc is a compiler kit for Go written in Go. Gocc generates lexers and
parsers or stand-alone DFAs or parsers from a BNF. Lexers are DFAs, which
recognise regular languages. Gocc lexers accept UTF-8 input. Gocc parsers are
PDAs, which recognise LR-1 languages. Optional LR1 conflict handling
automatically resolves shift / reduce and reduce / reduce conflicts.")
(license license:asl2.0)))
(define-public go-github-com-golang-glog
(package
(name "go-github-com-golang-glog")