From 1d537e0a61450332eba3fd719b548522dc8216d8 Mon Sep 17 00:00:00 2001 From: John Soo Date: Sat, 14 Dec 2019 15:39:58 -0800 Subject: [PATCH] gnu: Add rust-miniz-oxide-c-api-0.2. * gnu/package/crates-io.scm (rust-miniz-oxide-c-api-0.2): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5fc7078348..03293d4838 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -3074,6 +3074,35 @@ streaming API for miniz_oxide.") (base32 "17f92krv9hhsyc38prpfyn99m2hqhr4fgszpsla66a6gcrnpbhxn")))))) +(define-public rust-miniz-oxide-c-api-0.2 + (package + (name "rust-miniz-oxide-c-api") + (version "0.2.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "miniz_oxide_c_api" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1514mvlj8vl723xqxnww5cfqr2mhnqqqf18fn3df17yx8racly2v")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-crc32fast" ,rust-crc32fast-1.2) + ("rust-libc" ,rust-libc-0.2) + ("rust-miniz-oxide" ,rust-miniz-oxide-0.2)) + #:cargo-development-inputs + (("rust-cc" ,rust-cc-1.0)))) + (home-page "https://github.com/Frommi/miniz_oxide/") + (synopsis "DEFLATE compression and decompression API") + (description + "DEFLATE compression and decompression API designed to be Rust +drop-in replacement for miniz.") + (license license:expat))) + (define-public rust-miniz-sys-0.1 (package (name "rust-miniz-sys")