unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#57034] [PATCH] gnu: packages: Add miniz.
@ 2022-08-07 12:02 ( via Guix-patches via
  2022-08-07 16:42 ` Liliana Marie Prikler
  2022-12-12 22:45 ` [bug#57034] [PATCH v2] " ( via Guix-patches via
  0 siblings, 2 replies; 9+ messages in thread
From: ( via Guix-patches via @ 2022-08-07 12:02 UTC (permalink / raw)
  To: 57034; +Cc: (

* gnu/packages/compression.scm (miniz): New variable.
---
 gnu/packages/compression.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 6070c5beb1..cb1283c9a1 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -35,6 +35,7 @@
 ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
 ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 Ahmad Jarara <git@ajarara.io>
+;;; Copyright © 2022 ( <paren@disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2784,3 +2785,34 @@ (define-public fcrackzip
     (synopsis "Zip password cracker")
     (description "Fcrackzip is a Zip file password cracker.")
     (license license:gpl2+)))
+
+(define-public miniz
+  ;; Last release was on 27-06-2021; there have been many commits since
+  ;; then.
+  (let ((commit "be92575500f71dfb5ac7b0c5bb47b6e736c23039")
+        (revision "0"))
+    (package
+     (name "miniz")
+     (version (git-version "2.2.0" revision commit))
+     (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/richgel999/miniz")
+                    (commit commit)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0w42vagcv4b0hcf0jk7vamrcpmw62dblx9856j98msdfm3qv1xzi"))))
+     (build-system cmake-build-system)
+     (arguments
+      (list #:configure-flags
+            #~(list "-DBUILD_SHARED_LIBS=ON")
+            ;; No test target.
+            #:tests? #f))
+     (home-page "https://github.com/richgel999/miniz")
+     (synopsis "Simple replacement for @code{zlib}")
+     (description
+      "@code{miniz} is a small, simple alternative to the @code{zlib}
+data compression library for manipulating zlib, DEFLATE, PNG, and ZIP
+files from C.")
+     (license license:expat))))
-- 
2.37.1





^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [bug#57034] [PATCH] gnu: packages: Add miniz.
  2022-08-07 12:02 [bug#57034] [PATCH] gnu: packages: Add miniz ( via Guix-patches via
@ 2022-08-07 16:42 ` Liliana Marie Prikler
  2022-08-07 16:59   ` ( via Guix-patches via
                     ` (2 more replies)
  2022-12-12 22:45 ` [bug#57034] [PATCH v2] " ( via Guix-patches via
  1 sibling, 3 replies; 9+ messages in thread
From: Liliana Marie Prikler @ 2022-08-07 16:42 UTC (permalink / raw)
  To: (, 57034

Hi (,

last time I checked, the template was "gnu: Add PACKAGE", not "gnu:
packages: Add PACKAGE."

Am Sonntag, dem 07.08.2022 um 13:02 +0100 schrieb (:
> * gnu/packages/compression.scm (miniz): New variable.
> ---
>  gnu/packages/compression.scm | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
> 
> diff --git a/gnu/packages/compression.scm
> b/gnu/packages/compression.scm
> index 6070c5beb1..cb1283c9a1 100644
> --- a/gnu/packages/compression.scm
> +++ b/gnu/packages/compression.scm
> @@ -35,6 +35,7 @@
>  ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
>  ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
>  ;;; Copyright © 2021 Ahmad Jarara <git@ajarara.io>
> +;;; Copyright © 2022 ( <paren@disroot.org>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -2784,3 +2785,34 @@ (define-public fcrackzip
>      (synopsis "Zip password cracker")
>      (description "Fcrackzip is a Zip file password cracker.")
>      (license license:gpl2+)))
> +
> +(define-public miniz
> +  ;; Last release was on 27-06-2021; there have been many commits
> since
> +  ;; then.
And there might still be many more until a release.  I don't think
using untagged commits "just because" if the latest release is barely a
year old is a good idea.
> +  (let ((commit "be92575500f71dfb5ac7b0c5bb47b6e736c23039")
> +        (revision "0"))
> +    (package
> +     (name "miniz")
> +     (version (git-version "2.2.0" revision commit))
> +     (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url "https://github.com/richgel999/miniz")
> +                    (commit commit)))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +               
> "0w42vagcv4b0hcf0jk7vamrcpmw62dblx9856j98msdfm3qv1xzi"))))
> +     (build-system cmake-build-system)
> +     (arguments
> +      (list #:configure-flags
> +            #~(list "-DBUILD_SHARED_LIBS=ON")
> +            ;; No test target.
> +            #:tests? #f))
There is a test script you could use.
> +     (home-page "https://github.com/richgel999/miniz")
> +     (synopsis "Simple replacement for @code{zlib}")
> +     (description
> +      "@code{miniz} is a small, simple alternative to the
> @code{zlib}
> +data compression library for manipulating zlib, DEFLATE, PNG, and
> ZIP
> +files from C.")
Avoid marketing terms :)




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#57034] [PATCH] gnu: packages: Add miniz.
  2022-08-07 16:42 ` Liliana Marie Prikler
@ 2022-08-07 16:59   ` ( via Guix-patches via
  2022-08-07 17:19     ` Liliana Marie Prikler
  2022-08-07 17:01   ` ( via Guix-patches via
  2022-08-08  0:36   ` Tobias Geerinckx-Rice via Guix-patches via
  2 siblings, 1 reply; 9+ messages in thread
From: ( via Guix-patches via @ 2022-08-07 16:59 UTC (permalink / raw)
  To: Liliana Marie Prikler, 57034

On Sun Aug 7, 2022 at 5:42 PM BST, Liliana Marie Prikler wrote:
> last time I checked, the template was "gnu: Add PACKAGE", not "gnu:
> packages: Add PACKAGE."
Okay, I'll remember that for next time :)

> And there might still be many more until a release.  I don't think
> using untagged commits "just because" if the latest release is barely a
> year old is a good idea.

> > +  (let ((commit "be92575500f71dfb5ac7b0c5bb47b6e736c23039")
> > +        (revision "0"))
> > +    (package
> > +     (name "miniz")
> > +     (version (git-version "2.2.0" revision commit))
> > +     (source (origin
> > +              (method git-fetch)
> > +              (uri (git-reference
> > +                    (url "https://github.com/richgel999/miniz")
> > +                    (commit commit)))
> > +              (file-name (git-file-name name version))
> > +              (sha256
> > +               (base32
> > +               
> > "0w42vagcv4b0hcf0jk7vamrcpmw62dblx9856j98msdfm3qv1xzi"))))
> > +     (build-system cmake-build-system)
> > +     (arguments
> > +      (list #:configure-flags
> > +            #~(list "-DBUILD_SHARED_LIBS=ON")
> > +            ;; No test target.
> > +            #:tests? #f))
> There is a test script you could use.
It doesn't work; I tried it.

> > +      "@code{miniz} is a small, simple alternative to the
> > @code{zlib}
> > +data compression library for manipulating zlib, DEFLATE, PNG, and
> > ZIP
> > +files from C.")
> Avoid marketing terms :)
Do 'small' and 'simple' count as marketing terms? 'smaller than zlib'
is objective fact, and 'simpler than zlib' is subjective but pretty
obvious. Maybe I could rewrite it to say 'smaller, simpler alternative'
instead?

    -- (




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#57034] [PATCH] gnu: packages: Add miniz.
  2022-08-07 16:42 ` Liliana Marie Prikler
  2022-08-07 16:59   ` ( via Guix-patches via
@ 2022-08-07 17:01   ` ( via Guix-patches via
  2022-08-08  0:36   ` Tobias Geerinckx-Rice via Guix-patches via
  2 siblings, 0 replies; 9+ messages in thread
From: ( via Guix-patches via @ 2022-08-07 17:01 UTC (permalink / raw)
  To: Liliana Marie Prikler, 57034

On Sun Aug 7, 2022 at 5:42 PM BST, Liliana Marie Prikler wrote:
> And there might still be many more until a release.  I don't think
> using untagged commits "just because" if the latest release is barely a
> year old is a good idea.
Okay, I'll update it to use the latest release.

    -- (




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#57034] [PATCH] gnu: packages: Add miniz.
  2022-08-07 16:59   ` ( via Guix-patches via
@ 2022-08-07 17:19     ` Liliana Marie Prikler
  2022-08-07 17:22       ` ( via Guix-patches via
  0 siblings, 1 reply; 9+ messages in thread
From: Liliana Marie Prikler @ 2022-08-07 17:19 UTC (permalink / raw)
  To: (, 57034

Am Sonntag, dem 07.08.2022 um 17:59 +0100 schrieb (:
> On Sun Aug 7, 2022 at 5:42 PM BST, Liliana Marie Prikler wrote:
> > last time I checked, the template was "gnu: Add PACKAGE", not "gnu:
> > packages: Add PACKAGE."
> Okay, I'll remember that for next time :)
> 
> > And there might still be many more until a release.  I don't think
> > using untagged commits "just because" if the latest release is
> > barely a
> > year old is a good idea.
> 
> > > +  (let ((commit "be92575500f71dfb5ac7b0c5bb47b6e736c23039")
> > > +        (revision "0"))
> > > +    (package
> > > +     (name "miniz")
> > > +     (version (git-version "2.2.0" revision commit))
> > > +     (source (origin
> > > +              (method git-fetch)
> > > +              (uri (git-reference
> > > +                    (url "https://github.com/richgel999/miniz")
> > > +                    (commit commit)))
> > > +              (file-name (git-file-name name version))
> > > +              (sha256
> > > +               (base32
> > > +               
> > > "0w42vagcv4b0hcf0jk7vamrcpmw62dblx9856j98msdfm3qv1xzi"))))
> > > +     (build-system cmake-build-system)
> > > +     (arguments
> > > +      (list #:configure-flags
> > > +            #~(list "-DBUILD_SHARED_LIBS=ON")
> > > +            ;; No test target.
> > > +            #:tests? #f))
> > There is a test script you could use.
> It doesn't work; I tried it.
> 
> > > +      "@code{miniz} is a small, simple alternative to the
> > > @code{zlib}
> > > +data compression library for manipulating zlib, DEFLATE, PNG,
> > > and
> > > ZIP
> > > +files from C.")
> > Avoid marketing terms :)
> Do 'small' and 'simple' count as marketing terms? 'smaller than zlib'
> is objective fact, and 'simpler than zlib' is subjective but pretty
> obvious. Maybe I could rewrite it to say 'smaller, simpler
> alternative'
> instead?
"subjective, but pretty obvious", how so?  I think the fact that it
doesn't have its own documentation and you need to instead refer to
zlib kinda defeats that point.  Several of its README claims seem
either outdated already (the 550 lines one for example), or difficult
to guarantee forever.  I think the only claim we can reasonably make is
that it is an alternative zlib implementation, and that it supports
zlib, deflate, png and zip.

Cheers




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#57034] [PATCH] gnu: packages: Add miniz.
  2022-08-07 17:19     ` Liliana Marie Prikler
@ 2022-08-07 17:22       ` ( via Guix-patches via
  0 siblings, 0 replies; 9+ messages in thread
From: ( via Guix-patches via @ 2022-08-07 17:22 UTC (permalink / raw)
  To: Liliana Marie Prikler, 57034

On Sun Aug 7, 2022 at 6:19 PM BST, Liliana Marie Prikler wrote:
> "subjective, but pretty obvious", how so?  I think the fact that it
> doesn't have its own documentation and you need to instead refer to
> zlib kinda defeats that point.  Several of its README claims seem
> either outdated already (the 550 lines one for example), or difficult
> to guarantee forever.  I think the only claim we can reasonably make is
> that it is an alternative zlib implementation, and that it supports
> zlib, deflate, png and zip.
Okay. (There is a little documentation in the headers, by the way.) :)

    -- (




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#57034] [PATCH] gnu: packages: Add miniz.
  2022-08-07 16:42 ` Liliana Marie Prikler
  2022-08-07 16:59   ` ( via Guix-patches via
  2022-08-07 17:01   ` ( via Guix-patches via
@ 2022-08-08  0:36   ` Tobias Geerinckx-Rice via Guix-patches via
  2022-08-08  4:29     ` Liliana Marie Prikler
  2 siblings, 1 reply; 9+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2022-08-08  0:36 UTC (permalink / raw)
  To: 57034, liliana.prikler, paren

On 7 August 2022 16:42:35 UTC, Liliana Marie Prikler <liliana.prikler@gmail.com> wrote:
>> +     (synopsis "Simple replacement for @code{zlib}")
>> +     (description
>> +      "@code{miniz} is a small, simple alternative to the
>> @code{zlib}
>> +data compression library for manipulating zlib, DEFLATE, PNG, and
>> ZIP
>> +files from C.")
>Avoid marketing terms :)
 
(Small and simple are marketing terms?  Be right back; I need to update my profile...)

...no: avoid misleading or meaningless drivel, puffery, and redundancy.  Do, however, point out some basic features that might help users decide which of our oofteen deflate libraries fits their needs.  Add -er if you think it helps, or add some examples.

Otherwise, a common-sense guideline risks devolving into 'avoid adjectives; you might accidentally write a useful description'.



Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#57034] [PATCH] gnu: packages: Add miniz.
  2022-08-08  0:36   ` Tobias Geerinckx-Rice via Guix-patches via
@ 2022-08-08  4:29     ` Liliana Marie Prikler
  0 siblings, 0 replies; 9+ messages in thread
From: Liliana Marie Prikler @ 2022-08-08  4:29 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, (, 57034

Am Montag, dem 08.08.2022 um 00:36 +0000 schrieb Tobias Geerinckx-Rice:
> On 7 August 2022 16:42:35 UTC, Liliana Marie Prikler
> <liliana.prikler@gmail.com> wrote:
> > > +     (synopsis "Simple replacement for @code{zlib}")
> > > +     (description
> > > +      "@code{miniz} is a small, simple alternative to the
> > > @code{zlib}
> > > +data compression library for manipulating zlib, DEFLATE, PNG,
> > > and
> > > ZIP
> > > +files from C.")
> > Avoid marketing terms :)
>  
> (Small and simple are marketing terms?  Be right back; I need to
> update my profile...)
> 
> ...no: avoid misleading or meaningless drivel, puffery, and
> redundancy.  Do, however, point out some basic features that might
> help users decide which of our oofteen deflate libraries fits their
> needs.  Add -er if you think it helps, or add some examples.
Maybe not always, but I think in this context they are.  Especially
"simple", who decides that?  Pardon my cynicism here, but my personal
opinion w.r.t. compression libraries is that projects tend to pick the
one they're already contractually obligated to use FSVO contractually
obligated.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [bug#57034] [PATCH v2] gnu: packages: Add miniz.
  2022-08-07 12:02 [bug#57034] [PATCH] gnu: packages: Add miniz ( via Guix-patches via
  2022-08-07 16:42 ` Liliana Marie Prikler
@ 2022-12-12 22:45 ` ( via Guix-patches via
  1 sibling, 0 replies; 9+ messages in thread
From: ( via Guix-patches via @ 2022-12-12 22:45 UTC (permalink / raw)
  To: 57034; +Cc: (

* gnu/packages/compression.scm (miniz): New variable.
---
 gnu/packages/compression.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index d2a1ed36f7..aa6404d1a3 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -36,6 +36,7 @@
 ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 Ahmad Jarara <git@ajarara.io>
 ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
+;;; Copyright © 2022 ( <paren@disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2820,3 +2821,30 @@ (define-public fcrackzip
     (synopsis "Zip password cracker")
     (description "Fcrackzip is a Zip file password cracker.")
     (license license:gpl2+)))
+
+(define-public miniz
+  (package
+    (name "miniz")
+    (version "3.0.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/richgel999/miniz")
+                    (commit commit)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0lchj2yhvaiy0bc28xqnjqjhv4yj4kffcgxgfiikn634milwd5b4"))))
+     (build-system cmake-build-system)
+     (arguments
+      (list #:configure-flags
+            #~(list "-DBUILD_SHARED_LIBS=ON")
+            ;; No test target.
+            #:tests? #f))
+     (home-page "https://github.com/richgel999/miniz")
+     (synopsis "Alternative to zlib")
+     (description
+      "miniz is an alternative to, and in many cases drop-in replacement for, the
+zlib data compression libraries, which provides APIs for manipulating zlib, DEFLATE,
+PNG, and ZIP files from C.")
+     (license license:expat)))

base-commit: 1d160f41f5e973ea2bbbf8bc80d216b5d9b0974c
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-12-12 22:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-07 12:02 [bug#57034] [PATCH] gnu: packages: Add miniz ( via Guix-patches via
2022-08-07 16:42 ` Liliana Marie Prikler
2022-08-07 16:59   ` ( via Guix-patches via
2022-08-07 17:19     ` Liliana Marie Prikler
2022-08-07 17:22       ` ( via Guix-patches via
2022-08-07 17:01   ` ( via Guix-patches via
2022-08-08  0:36   ` Tobias Geerinckx-Rice via Guix-patches via
2022-08-08  4:29     ` Liliana Marie Prikler
2022-12-12 22:45 ` [bug#57034] [PATCH v2] " ( via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).