diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2019-09-05 17:46:36 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2019-09-06 15:45:59 +0300 |
commit | 3a3c72e6b1a5a9a8b5251be6d0edb14bf060b453 (patch) | |
tree | d9d76c59466d48a03249486d202facd7563466c4 | |
parent | 94c715e613c7c9a7ede9f960c63002664f2a0db9 (diff) | |
download | patches-3a3c72e6b1a5a9a8b5251be6d0edb14bf060b453.tar patches-3a3c72e6b1a5a9a8b5251be6d0edb14bf060b453.tar.gz |
gnu: Add rust-miniz-oxide.
* gnu/packages/crates-io.scm (rust-miniz-oxide): New variable.
-rw-r--r-- | gnu/packages/crates-io.scm | 31 |
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") |