gnu: Add go-zgo-at-runewidth.

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

Change-Id: I7c03b7e89ba45e8ce63cc482a4f860bdf839f727
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
gemmaro 2024-08-30 00:14:03 +09:00 committed by Sharlatan Hellseher
parent 41e408eb1f
commit 98aed3b9f8
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -45,6 +45,7 @@
;;; Copyright © 2024 Luis Higino <luishenriquegh2701@gmail.com>
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
;;; Copyright © 2024 Spencer Peters <spencerpeters@protonmail.com>
;;; Copyright © 2024 gemmaro <gemmaro.dev@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@ -7346,6 +7347,32 @@ (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. It is a fork of https://github.com/mattn/go-runewidth, updated to
the newest Unicode and having various helper functions removed, so all that
remains is just the @code{runewidth.RuneWidth()} function.")
(license license:expat)))
;;;
;;; Executables:
;;;