Subject: [PATCH 13/18] gnu: Add go-github-com-sergi-go-diff-diffmatchpatch.

From: Roman Scherer <[email-masked]>
Date: Sun, 29 Dec 2024 13:14:32 +0100

* gnu/packages/golang-xyz.scm (go-github-com-sergi-go-diff-diffmatchpatch): New variable.

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

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 770c99bc8a..dcd2483c24 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7204,6 +7204,33 @@ (define-public go-github-com-sergi-go-diff
 @end itemize")
     (license license:expat)))
 
+(define-public go-github-com-sergi-go-diff-diffmatchpatch
+  (package
+    (name "go-github-com-sergi-go-diff-diffmatchpatch")
+    (version "1.3.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sergi/go-diff")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0c7lsa3kjxbrx66r93d0pvx1408b80ignpi39fzka1qc0ylshw32"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/sergi/go-diff/diffmatchpatch"
+      #:unpack-path "github.com/sergi/go-diff"))
+    (propagated-inputs (list go-github-com-stretchr-testify))
+    (home-page "https://github.com/sergi/go-diff")
+    (synopsis "Diff, match and patch text in Golang")
+    (description
+     "This package provides algorithms to perform operations to synchronizing
+plain text, like comparing two texts and return their differences, perform
+fuzzy matching of text, and applying patches onto text.")
+    (license license:expat)))
+
 (define-public go-github-com-sevlyar-go-daemon
   (package
     (name "go-github-com-sevlyar-go-daemon")
-- 
2.47.1