From 750f2ec93272ca957b6d8dd09bfb954c937c9281 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 22 Feb 2023 20:02:37 +0200 Subject: [PATCH] gnu: Add rust-zstd-safe-5. * gnu/packages/crates-io.scm (rust-zstd-safe-5): New variable. (rust-zstd-safe-4): Inherit from rust-zstd-safe-5. --- gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e540cb2c74..8464f02ac3 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -72300,8 +72300,34 @@ implementation that works everywhere, even WASM!") ("rust-tokio-io" ,rust-tokio-io-0.1) ("rust-zstd-safe" ,rust-zstd-safe-3)))))) +(define-public rust-zstd-safe-5 + (package + (name "rust-zstd-safe") + (version "5.0.2+zstd.1.5.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "zstd-safe" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1nzl4q3xl68pq58g9xlym299bvjdii8cl7ix595ym7jgw22maahx")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-libc" ,rust-libc-0.2) + ("rust-zstd-sys" ,rust-zstd-sys-2)))) + (home-page "https://github.com/gyscos/zstd-rs") + (synopsis "Safe low-level bindings to the zstd compression library") + (description + "This package provides safe low-level bindings to the zstd compression +library.") + (license (list license:expat license:asl2.0)))) + (define-public rust-zstd-safe-4 (package + (inherit rust-zstd-safe-5) (name "rust-zstd-safe") (version "4.1.1+zstd.1.5.0") (source @@ -72312,18 +72338,11 @@ implementation that works everywhere, even WASM!") (string-append name "-" version ".tar.gz")) (sha256 (base32 "0yghr94blhnfigzsynm2km3g93886z49612y7rh07c4kqpr90769")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs (("rust-libc" ,rust-libc-0.2) - ("rust-zstd-sys" ,rust-zstd-sys-1)))) - (home-page "https://github.com/gyscos/zstd-rs") - (synopsis "Safe low-level bindings to the zstd compression library") - (description - "This package provides safe low-level bindings to the zstd compression -library.") - (license (list license:expat license:asl2.0)))) + ("rust-zstd-sys" ,rust-zstd-sys-1)))))) (define-public rust-zstd-safe-3 (package