guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 166dd7ee27302e1feff20d4693a6695a239308d6
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Oct 29 10:50:54 2025 +0000

    gnu: Add go-modernc-org-golex.
    
    * gnu/packages/golang-xyz.scm (go-modernc-org-golex): New variable.
    
    Change-Id: Ia789ef755e9d44a7661c783b37ff126b260e0638
---
 gnu/packages/golang-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 8e933e17b1..887229275d 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -24438,6 +24438,40 @@ Backus–Naur form, EBNF} grammars.")
     (description "Package fileutil collects some file utility functions.")
     (license license:bsd-3)))
 
+(define-public go-modernc-org-golex
+  (package
+    (name "go-modernc-org-golex")
+    (version "1.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.com/cznic/golex";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "01izinzm5j5210z09r6k8rygybw7s442hrhk0kv726ig9l9si7fi"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "modernc.org/golex"
+      #:test-flags
+      #~(list "-vet=off"   ;[email protected] forces vet, but tests are not ready yet.
+              ;; Cant's parce "\xff".
+              "-skip" "Example_completeGeneratedProgram")))
+    (propagated-inputs
+     (list go-modernc-org-lex
+           go-modernc-org-lexer))
+    (home-page "https://gitlab.com/cznic/golex";)
+    (synopsis "Lex/flex like (not fully POSIX lex compatible) utility")
+    (description
+     "Golex is a lex/flex like (not fully POSIX lex compatible) utility.  It
+renders @code{.l}
+@url{https://westes.github.io/flex/manual/Format.html#Format, formated data}
+to Go source code.  The @code{.l} data can come from a file named in a command
+line argument.  If no non-opt args are given, golex reads stdin.")
+    (license license:bsd-3)))
+
 (define-public go-modernc-org-lex
   (package
     (name "go-modernc-org-lex")

Reply via email to