gnu: Add rust-miniz-oxide.

* gnu/packages/crates-io.scm (rust-miniz-oxide): New variable.
This commit is contained in:
Efraim Flashner 2019-09-05 17:46:36 +03:00
parent 94c715e613
commit 3a3c72e6b1
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 31 additions and 0 deletions

View File

@ -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")