aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-01-03 11:51:46 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-06 12:22:43 +0200
commitf479fe03b502023fec629ac63950f042ca07a65c (patch)
treeca045e0f5f6f81ccacac84107302b13b1e7132ae
parent5f4c10476640d02fafca337e8aa4a22baecd855c (diff)
downloadguix-f479fe03b502023fec629ac63950f042ca07a65c.tar.gz
guix-f479fe03b502023fec629ac63950f042ca07a65c.zip
gnu: Add rust-zstd-seekable-0.1.
* gnu/packages/crates-compression.scm (rust-zstd-seekable-0.1): New variable. Change-Id: I4e67b4018ad87eca88d782fb77e46a4bd3fdcfbc
-rw-r--r--gnu/packages/crates-compression.scm31
1 files changed, 30 insertions, 1 deletions
diff --git a/gnu/packages/crates-compression.scm b/gnu/packages/crates-compression.scm
index 78a92108f0..5aeced44eb 100644
--- a/gnu/packages/crates-compression.scm
+++ b/gnu/packages/crates-compression.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
-;;; Copyright © 2019, 2020, 2023, 2024 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2019, 2020, 2023-2025 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Valentin Ignatev <valentignatev@gmail.com>
;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
@@ -1926,6 +1926,35 @@ library.")
(native-inputs '())
(inputs '())))
+;; TODO: Submit patches to use system zstd-seekable.
+(define-public rust-zstd-seekable-0.1
+ (package
+ (name "rust-zstd-seekable")
+ (version "0.1.23")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "zstd-seekable" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1hn3lry2p1fzjlx6shwq1k5bcpx4lqckmvl16gqx326vbiy12jjp"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; TODO: zstd-seekable fails to link during 'check phase.
+ #:cargo-inputs (("rust-bincode" ,rust-bincode-1)
+ ("rust-cc" ,rust-cc-1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-pkg-config" ,rust-pkg-config-0.3)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-derive" ,rust-serde-derive-1)
+ ("rust-thiserror" ,rust-thiserror-1)
+ ("rust-threadpool" ,rust-threadpool-1))))
+ (home-page "https://nest.pijul.com/pmeunier/zstd-seekable")
+ (synopsis "Bindings to the seekable version of ZStandard")
+ (description
+ "This package provides bindings to the seekable version of ZStandard.")
+ (license license:bsd-3)))
+
(define-public rust-zstd-sys-2
(package
(name "rust-zstd-sys")