Subject: [bug#75522] [PATCH v2 2/3] gnu: Add zig-img.

From: Ashvith Shetty <[email-masked]>
Date: Mon, 24 Mar 2025 18:41:34 +0530

* gnu/packages/zig-xyz.scm (zig-img): New variable.

Change-Id: If87e1f65d3aa544b30ea3fb0da4e292bcec5e567
---
 gnu/packages/zig-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index 4d1cbf9000..37c6e27e0a 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -187,6 +187,30 @@ (define-public zig-diffz
       (home-page "https://github.com/ziglibs/diffz")
       (license license:expat))))
 
+(define-public zig-img
+  ;; zig-img is required by beanbag. However, there's no tags at the
+  ;; moment, so we'll be using the commit mentioned in beanbag's repo.
+  (let ((commit "52f10dd3e3b1cd4614fe72a8a8f0eddc7700bc0a")
+        (revision "0"))
+    (package
+      (name "zig-img")
+      (version (git-version "0.1.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/zigimg/zigimg")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "187nh49rdv37arlvf056jiv58n4y87q2pm6qvznn75zrszjlvp0b"))))
+      (build-system zig-build-system)
+      (home-page "https://github.com/zigimg/zigimg")
+      (synopsis "Zig library for reading and writing different image formats")
+      (description
+       "@code{zig-img} is a Zig library for reading and writing different image formats.")
+      (license license:expat))))
+
 (define-public zig-known-folders
   (let ((commit "1cceeb70e77dec941a4178160ff6c8d05a74de6f")
         (revision "0"))
-- 
2.48.1