Subject: [bug#72874] [PATCH 1/8] gnu: Add go-zgo-at-runewidth.

From: gemmaro <[email-masked]>
Date: Fri, 30 Aug 2024 00:14:03 +0900

* gnu/packages/golang-xyz.scm (go-zgo-at-runewidth): New variable.

Change-Id: I7c03b7e89ba45e8ce63cc482a4f860bdf839f727
---
 gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 796341a66b..3607f09de2 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -45,6 +45,7 @@
 ;;; Copyright © 2024 Luis Higino <[email-masked]>
 ;;; Copyright © 2024 Troy Figiel <[email-masked]>
 ;;; Copyright © 2024 Spencer Peters <[email-masked]>
+;;; Copyright © 2024 gemmaro <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -6905,6 +6906,30 @@ (define-public go-mvdan-cc-editorconfig
 defined in @url{https://editorconfig.org/,https://editorconfig.org/}.")
     (license license:bsd-3)))
 
+(define-public go-zgo-at-runewidth
+  (package
+    (name "go-zgo-at-runewidth")
+    (version "0.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/arp242/runewidth")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "17wbzwak831z04kj4xdvh2q78k3in3kay009n0yj8nlwn1p126ph"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "zgo.at/runewidth"))
+    (home-page "https://github.com/arp242/runewidth")
+    (synopsis "Get fixed width of the character or string")
+    (description
+     "@samp{runewidth} provides functions to get fixed width of the
+character or string.")
+    (license license:expat)))
+
 ;;;
 ;;; Executables:
 ;;;
-- 
2.45.2