From 75a0cab4a1e49ea46c1cace63efa40c3ad94143a Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 8 Aug 2020 22:45:55 +0300 Subject: [PATCH] gnu: Add go-github-com-huandu-xstrings. * gnu/packages/golang.scm (go-github-com-huandu-xstrings): New variable. --- gnu/packages/golang.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6589a1d743..c64d5dcfc5 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4336,4 +4336,26 @@ (define-public go-github-com-masterminds-semver @item Optionally work with a @code{v} prefix @end itemize\n") (license license:expat))) + +(define-public go-github-com-huandu-xstrings + (package + (name "go-github-com-huandu-xstrings") + (version "1.3.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/huandu/xstrings") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0pwar6rc0fqb6pll38a44s81g5kb65vbg71jg5lx8caphjnikq5r")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/huandu/xstrings")) + (home-page "https://github.com/huandu/xstrings/") + (synopsis "Collection of string functions") + (description "Go package xstrings is a collection of string functions, +which are widely used in other languages but absent in Go package strings.") + (license license:expat))) (license license:expat)))