From 7876bb6f96702b37cd46403bd47bc381a75575ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=96R=C3=96SK=C5=90I=20Andr=C3=A1s?= Date: Sat, 24 Feb 2024 21:39:07 +0100 Subject: [PATCH] gnu: Add rust-asyncgit-0.25. * gnu/packages/crates-vcs.scm (rust-asyncgit-0.25): New variable. Change-Id: I85832ec9ce83a0d7e172534e04e39758854febaf Signed-off-by: Efraim Flashner --- gnu/packages/crates-vcs.scm | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/crates-vcs.scm b/gnu/packages/crates-vcs.scm index 805e1c1b65..c6af23d1ce 100644 --- a/gnu/packages/crates-vcs.scm +++ b/gnu/packages/crates-vcs.scm @@ -44,6 +44,52 @@ (define-module (gnu packages crates-vcs) #:use-module (gnu packages tls) #:use-module (gnu packages version-control)) +(define-public rust-asyncgit-0.25 + (package + (name "rust-asyncgit") + (version "0.25.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "asyncgit" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "05qlwp63k5zd4yd7n18v6bs32fhbx5qlsc98j203maacy0vlm9h7")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags '("--release" "--" + "--skip" "reject_in_subfolder" ; /bin/sh + "--skip" "test_pre_commit_workdir" ; /bin/sh + "--skip" "sync::submodules::tests::test_smoke") ; network + #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2) + ("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5) + ("rust-easy-cast" ,rust-easy-cast-0.5) + ("rust-fuzzy-matcher" ,rust-fuzzy-matcher-0.3) + ("rust-git2" ,rust-git2-0.18) + ("rust-git2-hooks" ,rust-git2-hooks-0.3) + ("rust-log" ,rust-log-0.4) + ("rust-openssl-sys" ,rust-openssl-sys-0.9) + ("rust-rayon" ,rust-rayon-1) + ("rust-rayon-core" ,rust-rayon-core-1) + ("rust-scopetime" ,rust-scopetime-0.1) + ("rust-serde" ,rust-serde-1) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-unicode-truncate" ,rust-unicode-truncate-0.2) + ("rust-url" ,rust-url-2)) + #:cargo-development-inputs + (("rust-env-logger" ,rust-env-logger-0.11) + ("rust-invalidstring" ,rust-invalidstring-0.1) + ("rust-pretty-assertions" ,rust-pretty-assertions-1) + ("rust-serial-test" ,rust-serial-test-3) + ("rust-tempfile" ,rust-tempfile-3)))) + (native-inputs (list pkg-config git-minimal)) + (inputs (list libgit2-1.7 libssh2 openssl zlib)) + (home-page "https://github.com/extrawurst/gitui") + (synopsis "Use git2 in an asynchronous context") + (description + "This package provides for using git2 in an asynchronous context.") + (license license:expat))) + (define-public rust-git-testament-0.2 (package (name "rust-git-testament")