aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/crates-io.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d01f6a03df..4a2f545018 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1272,6 +1272,37 @@ file IO.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-miniz-oxide
+ (package
+ (name "rust-miniz-oxide")
+ (version "0.3.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "miniz_oxide" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "041s41l5w7z8pkp93pdzn8rngxr93q4wxp034pr0cvc7bgway23i"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-adler32" ,rust-adler32))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda _
+ (substitute* "tests/test.rs"
+ (("../miniz/miniz.c") "Cargo.toml"))
+ #t)))))
+ (home-page "https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide")
+ (synopsis "Pure rust replacement for the miniz DEFLATE/zlib encoder/decoder")
+ (description
+ "A pure rust replacement for the miniz DEFLATE/zlib encoder/decoder. Using
+@code{flate2} with the @code{rust_backend} feature provides an easy to use
+streaming API for miniz_oxide.")
+ (license license:expat)))
+
(define-public rust-modifier
(package
(name "rust-modifier")