diff mbox series

[bug#72021,15/38] gnu: Add rust-libz-rs-sys-0.1.

Message ID 08cf4f957e532e20171bb8c27b20421334119935.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-libz-rs-sys-0.1): New variable.

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

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3f7aa4b1db..03a3291fff 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38995,6 +38995,29 @@  (define-public rust-zlib-rs-0.1
      "This package provides a memory-safe zlib implementation written in rust.")
     (license license:zlib)))
 
+(define-public rust-libz-rs-sys-0.1
+  (package
+    (name "rust-libz-rs-sys")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libz-rs-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0a1vx9gpyc6aizq7d1v76lribxchqkfxc3295a4z7q0b4lil8g6d"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-zlib-rs" ,rust-zlib-rs-0.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")