summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorTroy Figiel <troy@troyfigiel.com>2024-01-22 23:20:25 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:58:27 +0200
commite851a713d515de14bf5bdecbd6b758e30b2fa14f (patch)
tree09dfdc8358559d33243206377789e8ed17502b9a /gnu
parent81539f61dc4add0a35d54f8ee74b76b19cc569bc (diff)
downloadguix-e851a713d515de14bf5bdecbd6b758e30b2fa14f.tar.gz
gnu: Add rust-libdeflater-1.
* gnu/packages/crates-io.scm (rust-libdeflater-1): New variable.
(rust-libdeflater-0.11): Inherit from rust-libdeflater-1.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm29
1 files changed, 24 insertions, 5 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fe6a61091d..29e8be1617 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32412,22 +32412,23 @@ deflate, zlib, and gzip data.")
     (arguments
      `(#:cargo-inputs (("rust-cc" ,rust-cc-1))))))
 
-(define-public rust-libdeflater-0.11
+(define-public rust-libdeflater-1
   (package
     (name "rust-libdeflater")
-    (version "0.11.0")
+    (version "1.19.0")
     (source (origin
               (method url-fetch)
               (uri (crate-uri "libdeflater" version))
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
-               (base32 "0385hpai7fsnpfvxd3hki43v1cj8w6z1cb2rn8wd6vq4dam8bqnq"))))
+               (base32 "0zdbiqq2fmjakwk7d1xwnakjnxzaba9rz18k9clyql13cqpv4c9s"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
-       (("rust-libdeflate-sys" ,rust-libdeflate-sys-0.11))
+       (("rust-libdeflate-sys" ,rust-libdeflate-sys-1))
        #:cargo-development-inputs
-       (("rust-criterion" ,rust-criterion-0.3)
+       (("rust-adler32" ,rust-adler32-1)
+        ("rust-criterion" ,rust-criterion-0.3)
         ("rust-flate2" ,rust-flate2-1))))
     (home-page "https://github.com/adamkewley/libdeflater")
     (synopsis "Bindings to libdeflate for DEFLATE")
@@ -32436,6 +32437,24 @@ deflate, zlib, and gzip data.")
 for raw deflate, zlib, and gzip data.")
     (license license:asl2.0)))
 
+(define-public rust-libdeflater-0.11
+  (package
+    (inherit rust-libdeflater-1)
+    (name "rust-libdeflater")
+    (version "0.11.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "libdeflater" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32 "0385hpai7fsnpfvxd3hki43v1cj8w6z1cb2rn8wd6vq4dam8bqnq"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-libdeflate-sys" ,rust-libdeflate-sys-0.11))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.3)
+        ("rust-flate2" ,rust-flate2-1))))))
+
 (define-public rust-libflate-1
   (package
     (name "rust-libflate")