From 0aafd9a7c65640f7b4925a6b7e55c6e00c60d0bf Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 2 Jan 2024 21:13:20 +0200 Subject: [PATCH] gnu: Add rust-git2-curl-0.19. * gnu/packages/crates-vcs.scm (rust-git2-curl-0.19): New variable. (rust-git2-curl-0.18): Inherit from rust-git2-curl-0.19. Change-Id: I2b1f30d47b67de02f542289bf3e406eae9030ae7 --- gnu/packages/crates-vcs.scm | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-vcs.scm b/gnu/packages/crates-vcs.scm index 8edc31f6da..275449ee06 100644 --- a/gnu/packages/crates-vcs.scm +++ b/gnu/packages/crates-vcs.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2019, 2020, 2022, 2023 Efraim Flashner +;;; Copyright © 2019, 2020, 2022-2024 Efraim Flashner ;;; Copyright © 2019, 2020 John Soo ;;; Copyright © 2019, 2020 Nicolas Goaziou ;;; Copyright © 2021 Maxim Cournoyer @@ -398,8 +398,33 @@ (define-public rust-git2-0.6 (modify-inputs (package-inputs rust-git2-0.11) (prepend curl))))) +(define-public rust-git2-curl-0.19 + (package + (name "rust-git2-curl") + (version "0.19.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "git2-curl" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1hzp64h1x8kr2vvf3bx195s1999sh8d0cygw4vykymwcc1hnpqkq")))) + (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.18) + ("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.18 (package + (inherit rust-git2-curl-0.19) (name "rust-git2-curl") (version "0.18.0") (source @@ -409,19 +434,13 @@ (define-public rust-git2-curl-0.18 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "132zzrrfw3cnfh9ffc9pfr94my97agnmk7pnfvzqr4kj5d1vgy7q")))) - (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.17) ("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-git2-curl-0.17 (package