summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-compression.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-12-26 22:17:40 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-06 12:19:37 +0200
commitc8cfea072608c4e646e39040dfe3e5d055409e6d (patch)
tree5f00cdbb354599037d0a7da0ed2fb87536779b24 /gnu/packages/crates-compression.scm
parentd49ab8cda46af9898f92572d9f9c29bed5dab7be (diff)
gnu: rust-zlib-rs: Move to (gnu packages crates-compression).
* gnu/packages/crates-io.scm (rust-zlib-rs-0.4, rust-zlib-rs-0.3, rust-zlib-rs-0.1): Move from here ... * gnu/packages/crates-compression.scm: ... to here. Change-Id: Ia61d9659b9297baec12ade8285bb1662e823a496
Diffstat (limited to 'gnu/packages/crates-compression.scm')
-rw-r--r--gnu/packages/crates-compression.scm61
1 files changed, 61 insertions, 0 deletions
diff --git a/gnu/packages/crates-compression.scm b/gnu/packages/crates-compression.scm
index f09223a6d00..b8ddce57fe6 100644
--- a/gnu/packages/crates-compression.scm
+++ b/gnu/packages/crates-compression.scm
@@ -1122,6 +1122,67 @@ algorithm and related formats (ZLIB, GZIP).")
(native-inputs '())
(inputs '())))
+(define-public rust-zlib-rs-0.4
+ (package
+ (name "rust-zlib-rs")
+ (version "0.4.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "zlib-rs" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1y24i695cwvm4frs98bhjznfa19by6hkb42np7abl4lk79ah3nma"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-arbitrary" ,rust-arbitrary-1)
+ ("rust-quickcheck" ,rust-quickcheck-1))
+ #:cargo-development-inputs (("rust-crc32fast" ,rust-crc32fast-1)
+ ("rust-quickcheck" ,rust-quickcheck-1))))
+ (home-page "https://github.com/trifectatechfoundation/zlib-rs")
+ (synopsis "Memory-safe zlib implementation written in Rust")
+ (description
+ "This package provides a memory-safe zlib implementation written in Rust.")
+ (license license:zlib)))
+
+(define-public rust-zlib-rs-0.3
+ (package
+ (inherit rust-zlib-rs-0.4)
+ (name "rust-zlib-rs")
+ (version "0.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "zlib-rs" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "06kkjpqddvb5n8c24mmd3lmmcsy2yfwfsjyni8dggysayfd7r50b"))))
+ (arguments
+ `(#:cargo-inputs (("rust-arbitrary" ,rust-arbitrary-1)
+ ("rust-libz-sys" ,rust-libz-sys-1)
+ ("rust-quickcheck" ,rust-quickcheck-1))))))
+
+(define-public rust-zlib-rs-0.1
+ (package
+ (inherit rust-zlib-rs-0.3)
+ (name "rust-zlib-rs")
+ (version "0.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "zlib-rs" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "18a49npwcrpbvsxs3dzk51kizd81qffnaxjqfn4fqq37vki0a8f5"))))
+ (arguments
+ `(#:tests? #f ; zlib-ng isn't packaged.
+ #:cargo-inputs (("rust-arbitrary" ,rust-arbitrary-1)
+ ("rust-libz-sys" ,rust-libz-sys-1)
+ ("rust-quickcheck" ,rust-quickcheck-1))
+ #:cargo-development-inputs (("rust-crc32fast" ,rust-crc32fast-1)
+ ("rust-libloading" ,rust-libloading-0.8)
+ ("rust-libz-ng-sys" ,rust-libz-ng-sys-1))))))
+
(define-public rust-zopfli-0.8
(package
(name "rust-zopfli")