gnu: Add go-github.com-mattn-go-runewidth.

* gnu/packages/textutils.scm (go-github.com-mattn-go-runewidth): New variable.
This commit is contained in:
Christopher Baines 2018-01-21 10:53:19 +00:00
parent 210c6d959d
commit 03f801aa88
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 24 additions and 0 deletions

View File

@ -37,6 +37,7 @@
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix build-system ant) #:use-module (guix build-system ant)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system go)
#:use-module (guix build-system cmake) #:use-module (guix build-system cmake)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module (gnu packages) #:use-module (gnu packages)
@ -660,3 +661,26 @@ source code.")
"This library simply implements Levenshtein distance algorithm with C++ "This library simply implements Levenshtein distance algorithm with C++
and Cython.") and Cython.")
(license license:expat)))) (license license:expat))))
(define-public go-github.com-mattn-go-runewidth
(package
(name "go-github.com-mattn-go-runewidth")
(version "0.0.2")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mattn/go-runewidth")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0vkrfrz3fzn5n6ix4k8s0cg0b448459sldq8bp4riavsxm932jzb"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/mattn/go-runewidth"))
(synopsis "@code{runewidth} provides Go functions to work with string widths")
(description
"The @code{runewidth} library provides Go functions for padding,
measuring and checking the width of strings, with support east asian text.")
(home-page "https://github.com/jessevdk/go-flags")
(license license:expat)))