~ruther/guix-local

55b93f7e17ec36c28e8a4faa36793bcd5421f2c3 — Sharlatan Hellseher 1 year, 6 months ago 1692284
gnu: Add go-github-com-goccmack-gocc.

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

Change-Id: Ia81fe771b6acd086d5ecfc194f6f02cd44b7b6dc
1 files changed, 31 insertions(+), 0 deletions(-)

M gnu/packages/golang-build.scm
M gnu/packages/golang-build.scm => gnu/packages/golang-build.scm +31 -0
@@ 59,6 59,37 @@
;;;
;;; 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")