summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-compression.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-12-26 22:40:50 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-06 12:19:40 +0200
commit8e11841adea252aa63f6c0c426c342f7891d24c0 (patch)
tree241f90806a7c31a3b4514d7d7c1e88949647b25f /gnu/packages/crates-compression.scm
parentbac0a59c9b92665a8f4a02c357023578a5b6726b (diff)
gnu: rust-xz: Move to (gnu packages crates-compression).
* gnu/packages/crates-io.scm (rust-xz-0.1, rust-xz2-0.1): Move from here * gnu/packages/crates-compression.scm: ... to here. Change-Id: If8173e2a963d868ef097eaf28079c1a523b6a8ec
Diffstat (limited to 'gnu/packages/crates-compression.scm')
-rw-r--r--gnu/packages/crates-compression.scm57
1 files changed, 57 insertions, 0 deletions
diff --git a/gnu/packages/crates-compression.scm b/gnu/packages/crates-compression.scm
index 31945eb6a6f..97161a14dcd 100644
--- a/gnu/packages/crates-compression.scm
+++ b/gnu/packages/crates-compression.scm
@@ -1582,6 +1582,63 @@ streaming API for miniz_oxide.")
"This package provides FFI bindings to unrar (with minimal abstractions).")
(license license:expat)))
+(define-public rust-xz-0.1
+ (package
+ (name "rust-xz")
+ (version "0.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "xz" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0d6sq57g1969hjl5k7gzzdbyr60za9hk8qs9iqz26biazy87d21w"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-xz2" ,rust-xz2-0.1))))
+ (native-inputs
+ (list pkg-config xz))
+ (home-page "https://github.com/alexcrichton/xz2-rs")
+ (synopsis "Alias of `xz2` crate")
+ (description
+ "Rust bindings to @code{liblzma} providing Read/Write streams as well as
+low-level in-memory encoding/decoding. Alias of @code{xz2} crate.")
+ (license (list license:expat license:asl2.0))))
+
+(define-public rust-xz2-0.1
+ (package
+ (name "rust-xz2")
+ (version "0.1.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "xz2" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1qk7nzpblizvayyq4xzi4b0zacmmbqr6vb9fc0v1avyp17f4931q"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-test-flags
+ '("--release" "--"
+ ;; Not all files included in the tarball.
+ "--skip=standard_files")
+ #:cargo-inputs
+ (("rust-futures" ,rust-futures-0.1)
+ ("rust-lzma-sys" ,rust-lzma-sys-0.1)
+ ("rust-tokio-io" ,rust-tokio-io-0.1))
+ #:cargo-development-inputs
+ (("rust-quickcheck" ,rust-quickcheck-1)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-tokio-core" ,rust-tokio-core-0.1))))
+ (native-inputs
+ (list pkg-config xz))
+ (home-page "https://github.com/alexcrichton/xz2-rs")
+ (synopsis "Rust bindings to liblzma")
+ (description "This package provides Rust bindings to liblzma providing
+Read/Write streams as well as low-level in-memory encoding and decoding.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-zip-2
(package
(name "rust-zip")