diff mbox series

[bug#72021,14/38] gnu: Add rust-zlib-rs-0.1.

Message ID a78bd5eb38c4d03d9498f75e948ecbb9d6feab99.1720567734.git.w@wmeyer.eu
State New
Headers show
Series gnu: Add ouch. | expand

Commit Message

Wilko Meyer July 9, 2024, 11:36 p.m. UTC
* gnu/packages/crates-io.scm (rust-zlib-rs-0.1): New variable.

Change-Id: Ie0246811a1ededb68a70b319fdc569656bc52351
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 771ff45e67..3f7aa4b1db 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38971,6 +38971,30 @@  (define-public rust-libxml-0.2
        (sha256
         (base32 "1xx1bsay6c0jy9vi7qcvliidya33lvbkxwpdfz9qmzl23f11xxxh"))))))
 
+(define-public rust-zlib-rs-0.1
+  (package
+    (name "rust-zlib-rs")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "zlib-rs" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "18a49npwcrpbvsxs3dzk51kizd81qffnaxjqfn4fqq37vki0a8f5"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-arbitrary" ,rust-arbitrary-1)
+                       ("rust-libz-sys" ,rust-libz-sys-1)
+                       ("rust-quickcheck" ,rust-quickcheck-1))))
+   (native-inputs (list pkg-config))
+    (inputs (list (list zstd "lib")))
+    (home-page "https://github.com/memorysafety/zlib-rs")
+    (synopsis "Memory-safe zlib implementation")
+    (description
+     "This package provides a memory-safe zlib implementation written in rust.")
+    (license license:zlib)))
+
 (define-public rust-libz-sys-1
   (package
     (name "rust-libz-sys")