Subject: [bug #56057] [PATCH v2 02/21] gnu: Add rust-adler-1.

From: antlers <[email-masked]>
Date: Sun, 19 Jun 2022 10:26:52 -0700

* gnu/packages/crates-io.scm (rust-adler-1): New variable.
---
:100644 100644 b1a8ee0d67 72012e1afb M	gnu/packages/crates-io.scm
 gnu/packages/crates-io.scm | 37 ++++++++++++++++++++++++++-----------
 1 file changed, 26 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b1a8ee0d67..72012e1afb 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1840,8 +1840,33 @@ (define-public rust-addr2line-0.9
         ("rust-memmap" ,rust-memmap-0.7)
         ("rust-rustc-test" ,rust-rustc-test-0.3))))))
 
+(define-public rust-adler-1
+  (package
+    (name "rust-adler")
+    (version "1.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "adler" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1zim79cvzd5yrkzl3nyfx0avijwgk9fqv3yrscdy1cc79ih02qpj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
+        ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))
+    (home-page "https://github.com/jonas-schievink/adler")
+    (synopsis "Implementation of the Adler-32 checksum")
+    (description
+     "This crate provides a simple implementation of the Adler-32
+checksum, used in the zlib compression format.")
+    (license (list license:bsd-0 license:expat license:asl2.0))))
+
 (define-public rust-adler-0.2
   (package
+    (inherit rust-adler-1)
     (name "rust-adler")
     (version "0.2.3")
     (source
@@ -1851,21 +1876,11 @@ (define-public rust-adler-0.2
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0zpdsrfq5bd34941gmrlamnzjfbsx0x586afb7b0jqhr8g1lwapf"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
-        ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))
-    (home-page "https://github.com/jonas-schievink/adler")
-    (synopsis "Implementation of the Adler-32 checksum")
-    (description
-     "This crate provides a simple implementation of the Adler-32
-checksum, used in the zlib compression format.")
-    (license
-     (list license:expat
-           license:asl2.0
-           (license:non-copyleft "https://spdx.org/licenses/0BSD.html")))))
+        ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))))
 
 (define-public rust-adler32-1
   (package
-- 
2.36.0