From 9a8b3c656fccb54a2c99c9a8be3b8d08cb4f2eda Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Sun, 18 Feb 2024 22:03:31 +0100 Subject: [PATCH] gnu: Add rust-thrift-0.17. * gnu/packages/crates-io.scm (rust-thrift-0.17): Add variable. (rust-thrift-0.13): Inherit rust-thrift-0.17. Change-Id: I12e5d9216f024aefd41058681828151d481bbe63 Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index bb134d2756..fddebcb13f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -75638,8 +75638,34 @@ fixed set of worker threads.") (license (list license:asl2.0 license:expat)))) +(define-public rust-thrift-0.17 + (package + (name "rust-thrift") + (version "0.17.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "thrift" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "02cydaqqlp25ri19y3ixi77a7nd85fwvbfn4fp0qpakzzj2vqm3y")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1) + ("rust-integer-encoding" ,rust-integer-encoding-3) + ("rust-log" ,rust-log-0.4) + ("rust-ordered-float" ,rust-ordered-float-2) + ("rust-threadpool" ,rust-threadpool-1)))) + (home-page "https://thrift.apache.org") + (synopsis "Rust bindings for the Apache Thrift RPC system") + (description + "This package provides Rust bindings for the Apache Thrift RPC +system.") + (license license:asl2.0))) + (define-public rust-thrift-0.13 (package + (inherit rust-thrift-0.17) (name "rust-thrift") (version "0.13.0") (source @@ -75649,7 +75675,6 @@ fixed set of worker threads.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0nvbrflb5fw6hmayqppkp97dh63vs2znww92dlkcfz4laia9cv8c")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs @@ -75657,12 +75682,7 @@ fixed set of worker threads.") ("rust-integer-encoding" ,rust-integer-encoding-1) ("rust-log" ,rust-log-0.4) ("rust-ordered-float" ,rust-ordered-float-1) - ("rust-threadpool" ,rust-threadpool-1)))) - (home-page "https://thrift.apache.org") - (synopsis "Rust bindings for the Apache Thrift RPC system") - (description - "This crate provides Rust bindings for the Apache Thrift RPC system.") - (license license:asl2.0))) + ("rust-threadpool" ,rust-threadpool-1)))))) (define-public rust-tikv-jemalloc-sys-0.4 (package