From 0a5cf277fffcf8ca5c9cc7c5fdfbac0bed90fa32 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 29 Oct 2025 08:46:18 +0000 Subject: [PATCH] gnu: Add go-modernc-org-lex. * gnu/packages/golang-xyz.scm (go-modernc-org-lex): New variable. Change-Id: Id52603ba75cbf1089df04deb179782c167eb79c0 --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 4c6ddb675bd..8e933e17b17 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -24438,6 +24438,34 @@ Backus–Naur form, EBNF} grammars.") (description "Package fileutil collects some file utility functions.") (license license:bsd-3))) +(define-public go-modernc-org-lex + (package + (name "go-modernc-org-lex") + (version "1.1.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/lex") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fad093cdkgdwk3sf0vklk05qzkis1ivri3hig1wigv4z908nmdj")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/lex")) + (propagated-inputs + (list go-modernc-org-fileutil + go-modernc-org-lexer)) + (home-page "https://gitlab.com/cznic/lex") + (synopsis "Support for a @code{*nix (f)lex} like tool on @code{.l} sources") + (description + "This package provides a support for a @code{*nix (f)lex} like tool on +@code{.l} sources. The syntax is similar to a subset of @code{}(f)lex}, see +also: @url{https://github.com/westes/flex}.") + (license license:bsd-3))) + (define-public go-modernc-org-lexer (package (name "go-modernc-org-lexer")