From 641ebba81cdf5816f57627f17ae0c5aba375f1e3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 22 Feb 2023 10:56:09 +0200 Subject: [PATCH] gnu: Add rust-git2-curl-0.17. * gnu/packages/crates-io.scm (rust-git2-curl-0.17): New variable. (rust-git2-curl-0.14): Inherit from rust-git2-curl-0.17. --- gnu/packages/crates-io.scm | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index a5d96b538f..96c57a5b01 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -24693,8 +24693,35 @@ reading and writing git repositories.") (modify-inputs (package-inputs rust-git2-0.11) (prepend curl))))) +(define-public rust-git2-curl-0.17 + (package + (name "rust-git2-curl") + (version "0.17.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "git2-curl" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0cydakv91acxkxfj0kazp9sc4mmr8l51649mi06wk9qv6kkg8xvm")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t ;need rust-civet and others + #:cargo-inputs + (("rust-curl" ,rust-curl-0.4) + ("rust-git2" ,rust-git2-0.16) + ("rust-log" ,rust-log-0.4) + ("rust-url" ,rust-url-2)))) + (home-page "https://github.com/rust-lang/git2-rs") + (synopsis "Libgit2 HTTP transport backend powered by @code{libcurl}") + (description "Backend for an HTTP transport in @code{libgit2}, powered by +libcurl, which is intended to be used with the @code{git2} crate.") + (license (list license:expat license:asl2.0)))) + (define-public rust-git2-curl-0.14 (package + (inherit rust-git2-curl-0.17) (name "rust-git2-curl") (version "0.14.1") (source @@ -24706,19 +24733,13 @@ reading and writing git repositories.") (sha256 (base32 "0l1sckmpvhd498c9ji04gkpfkfrpx7c8rabihczsnjx91v5kjdc8")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t ;need rust-civet and others #:cargo-inputs (("rust-curl" ,rust-curl-0.4) ("rust-git2" ,rust-git2-0.13) ("rust-log" ,rust-log-0.4) - ("rust-url" ,rust-url-2)))) - (home-page "https://github.com/rust-lang/git2-rs") - (synopsis "Libgit2 HTTP transport backend powered by @code{libcurl}") - (description "Backend for an HTTP transport in @code{libgit2}, powered by -libcurl, which is intended to be used with the @code{git2} crate.") - (license (list license:expat license:asl2.0)))) + ("rust-url" ,rust-url-2)))))) (define-public rust-gjson-0.8 (package