guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/135: gnu: Add rust-git2-hooks-0.3.


From: guix-commits
Subject: 04/135: gnu: Add rust-git2-hooks-0.3.
Date: Wed, 27 Mar 2024 04:54:38 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 8f6f6a95a38a47324b993d81fc8980e14ed67fc2
Author: VÖRÖSKŐI András <voroskoi@gmail.com>
AuthorDate: Sat Feb 24 21:39:01 2024 +0100

    gnu: Add rust-git2-hooks-0.3.
    
    * gnu/packages/crates-vcs.scm (rust-git2-hooks-0.3): New variable.
    
    Change-Id: Ie144b60e8eeef996f8fbce58d51ed8dae7063834
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-vcs.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-vcs.scm b/gnu/packages/crates-vcs.scm
index 3411446dad..805e1c1b65 100644
--- a/gnu/packages/crates-vcs.scm
+++ b/gnu/packages/crates-vcs.scm
@@ -421,6 +421,34 @@ libcurl, which is intended to be used with the @code{git2} 
crate.")
         ("rust-log" ,rust-log-0.4)
         ("rust-url" ,rust-url-2))))))
 
+(define-public rust-git2-hooks-0.3
+  (package
+    (name "rust-git2-hooks")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "git2-hooks" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1grq79ggjp2b10yxl205kjkfqcijmmncnf47az3g1g713irpzgwx"))))
+    (native-inputs (list pkg-config))
+    (inputs (list libgit2-1.6 libssh2 openssl zlib))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; missing git2_testing
+       #:cargo-inputs (("rust-git2" ,rust-git2-0.17)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-shellexpand" ,rust-shellexpand-3)
+                       ("rust-thiserror" ,rust-thiserror-1))
+       #:cargo-development-inputs
+       (("rust-pretty-assertions" ,rust-pretty-assertions-1)
+        ("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://github.com/extrawurst/gitui";)
+    (synopsis "Git hooks")
+    (description "This crate adds git hooks support based on git2-rs.")
+    (license license:expat)))
+
 (define-public rust-gix-0.56
   (package
     (name "rust-gix")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]