sharlatan pushed a commit to branch go-team
in repository guix.
commit 42da7da956971e2546f1538857e7b6f951f94195
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Dec 28 19:58:52 2024 +0000
gnu: Add go-github-com-agnivade-levenshtein.
* gnu/packages/golang-xyz.scm (go-github-com-agnivade-levenshtein): New
variable.
Change-Id: I1a993e2618cbafd225c1effa179f41d895937af4
---
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 55327841a5..e3b0166a47 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -546,6 +546,34 @@ XDG defined locations instead of hardcoding paths. The
package also includes
the locations of well known user directories.")
(license license:expat)))
+(define-public go-github-com-agnivade-levenshtein
+ (package
+ (name "go-github-com-agnivade-levenshtein")
+ (version "1.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/agnivade/levenshtein")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0vg9aj9k4qv96nqqp261qrm9g7kj0axqhv3mm9qvw932l72943hn"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/agnivade/levenshtein"))
+ (native-inputs ; for tests only
+ (list go-github-com-arbovm-levenshtein
+ go-github-com-dgryski-trifles))
+ (home-page "https://github.com/agnivade/levenshtein")
+ (synopsis "Golang implementation to calculate Levenshtein Distance")
+ (description
+ "This package implements a functionality to calculate
+@url{https://en.wikipedia.org/wiki/Levenshtein_distance, Levenshtein
+Distance}.")
+ (license license:expat)))
+
(define-public go-github-com-alecthomas-chroma
(package
(name "go-github-com-alecthomas-chroma")