Subject: [bug#69257] [PATCH 069/228] gnu: Add rust-libflate-lz77-2.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:03:07 +0100

* gnu/packages/crates-web.scm (rust-libflate-lz77-2): Add variable.
(rust-libflate-lz77-1): Inherit rust-libflate-lz77-2.

Change-Id: Ic3822db635dde5796bd211d5f2d661410075eacd
---
 gnu/packages/crates-io.scm | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 888bab7240..f0cc910da1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33868,17 +33868,17 @@ (define-public rust-libflate-0.1
        #:cargo-development-inputs
        (("rust-clap" ,rust-clap-2))))))
 
-(define-public rust-libflate-lz77-1
+(define-public rust-libflate-lz77-2
   (package
     (name "rust-libflate-lz77")
-    (version "1.2.0")
+    (version "2.0.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "libflate_lz77" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1gxc75fb2sk0xgrh3qxvxcx1l93yhmyxn9241r251wl5zj5klbd5"))))
+        (base32 "096map4a8xvf3819kgdxbg08nf97nggg9lvrdgn7c5a5ikxm4pxy"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
@@ -33886,12 +33886,26 @@ (define-public rust-libflate-lz77-1
         ("rust-hashbrown" ,rust-hashbrown-0.13)
         ("rust-rle-decode-fast" ,rust-rle-decode-fast-1))
        #:cargo-development-inputs
+       ;; Needed by rust-libflate-lz77-1.
        (("rust-libflate" ,rust-libflate-1))))
     (home-page "https://github.com/sile/libflate")
     (synopsis "LZ77 encoder for libflate crate")
     (description "This package provides a LZ77 encoder for libflate crate.")
     (license license:expat)))
 
+(define-public rust-libflate-lz77-1
+  (package
+    (inherit rust-libflate-lz77-2)
+    (name "rust-libflate-lz77")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libflate_lz77" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1gxc75fb2sk0xgrh3qxvxcx1l93yhmyxn9241r251wl5zj5klbd5"))))))
+
 (define-public rust-libfuzzer-sys-0.4
   (package
     (name "rust-libfuzzer-sys")
-- 
2.41.0