Subject: [PATCH v3 5/9] gnu: Add minizip-ng.

From: Vinicius Monego <[email-masked]>
Date: Wed, 3 Apr 2024 01:30:25 +0000

* gnu/packages/compression.scm (minizip-ng): New variable.

Change-Id: I429dc542c1610383962c9971c2bef5a94c1f8bc6
---
 gnu/packages/compression.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 5de17b6b51..02a20e5c62 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -38,6 +38,7 @@
 ;;; Copyright © 2022 Greg Hogan <[email-masked]>
 ;;; Copyright © 2022 Zhu Zihao <[email-masked]>
 ;;; Copyright © 2021 Foo Chuan Wei <[email-masked]>
+;;; Copyright © 2024 Vinicius Monego <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -769,6 +770,32 @@ (define-public sfarklib
 with the sfArk algorithm.")
     (license license:gpl3+)))
 
+(define-public minizip-ng
+  (package
+    (name "minizip-ng")
+    (version "4.0.5")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/zlib-ng/minizip-ng")
+                     (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0lgx4s4aykxn8x3b4m4c4isasd2608bbyfm4lxc2spcc4xqwhzkz"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
+                                     "-DMZ_BUILD_TESTS=ON"
+                                     "-DMZ_BUILD_UNIT_TESTS=ON")))
+    (native-inputs (list googletest pkg-config))
+    (inputs (list openssl zlib `(,zstd "lib")))
+    (home-page "https://github.com/zlib-ng/minizip-ng")
+    (synopsis "Zip manipulation library")
+    (description "@code{minizip-ng} is a zip manipulation library written in
+C, forked from the zip manipulation library found in the zlib distribution.")
+    (license license:bsd-3)))
+
 (define-public sfarkxtc
   (let ((commit "13cd6f93725a90d91ec5ea75babf1dbd694ac463")
         (revision "1"))
-- 
2.39.2