Subject: [PATCH 15/18] gnu: Add go-github-com-yudai-gojsondiff.

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

* gnu/packages/golang-xyz.scm (go-github-com-yudai-gojsondiff): New variable.

Change-Id: I26c56581e3d181d8657ed50f9ba43ca84225cd7e
---
 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 ad5e86274f..3079aec868 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -8309,6 +8309,34 @@ (define-public go-github-com-yudai-golcs
 common sequence} values from two arbitrary arrays.")
       (license license:expat))))
 
+(define-public go-github-com-yudai-gojsondiff
+  (package
+    (name "go-github-com-yudai-gojsondiff")
+    (version "1.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/yudai/gojsondiff")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0qnymi0027mb8kxm24mmd22bvjrdkc56c7f4q3lbdf93x1vxbbc2"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/yudai/gojsondiff"))
+    (propagated-inputs (list go-github-com-sergi-go-diff-diffmatchpatch
+                             go-github-com-yudai-golcs
+                             go-github-com-onsi-ginkgo))
+    (home-page "https://github.com/yudai/gojsondiff")
+    (synopsis "JSON Diff and Patch for Golang")
+    (description
+     "This package implements a \"diff\" algorithm that compares two JSON
+objects and generates deltas that describe the differences between them.  The
+deltas can be applied to a JSON object to \"patch\" them.")
+    (license license:expat)))
+
 (define-public go-github-com-yuin-gopher-lua
   (package
     (name "go-github-com-yuin-gopher-lua")
-- 
2.47.1