Subject: [PATCH 29/54] gnu: Add rust-gix-prompt-0.7.

From: Steve George <[email-masked]>
Date: Thu, 9 Nov 2023 19:38:26 +0000

* gnu/packages/crates-io.scm (rust-gix-prompt-0.7): New variable.

Change-Id: Ic69cf0c436a26262f118c5dfabfb3047bd7feeac
---
 gnu/packages/crates-io.scm | 39 +++++++++++++++++++++++++++++---------
 1 file changed, 30 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5032d4aed25..43d33a9ac3b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31670,8 +31670,37 @@ (define-public rust-gix-path-0.8
        #:cargo-development-inputs
        (("rust-tempfile" ,rust-tempfile-3))))))
 
+(define-public rust-gix-prompt-0.7
+  (package
+    (name "rust-gix-prompt")
+    (version "0.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gix-prompt" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0y26b3d7z222b223ir9qf8yqwhknzc3c5yksjffmwvsid4vr36jw"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-gix-command" ,rust-gix-command-0.2)
+                       ("rust-gix-config-value" ,rust-gix-config-value-0.14)
+                       ("rust-parking-lot" ,rust-parking-lot-0.12)
+                       ("rust-rustix" ,rust-rustix-0.38)
+                       ("rust-thiserror" ,rust-thiserror-1))
+       #:cargo-development-inputs(("rust-expectrl" ,rust-expectrl-0.7)
+                                  ("rust-serial-test" ,rust-serial-test-2))))
+    (home-page "https://github.com/Byron/gitoxide")
+    (synopsis
+     "Handles prompts in the terminal as part of Gitoxide")
+    (description
+     "Gitoxide is a Rust implementation of Git.  This crate handles the
+terminals prompt.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-gix-prompt-0.5
   (package
+    (inherit rust-gix-prompt-0.7)
     (name "rust-gix-prompt")
     (version "0.5.5")
     (source
@@ -31681,7 +31710,6 @@ (define-public rust-gix-prompt-0.5
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1sm5b24jpcv4whzxymk6fpb1ph1hhq6842115fpcqqx0yk5dw8ic"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-gix-command" ,rust-gix-command-0.2)
@@ -31691,14 +31719,7 @@ (define-public rust-gix-prompt-0.5
         ("rust-thiserror" ,rust-thiserror-1))
        #:cargo-development-inputs
        (("rust-expectrl" ,rust-expectrl-0.7)
-        ("rust-serial-test" ,rust-serial-test-2))))
-    (home-page "https://github.com/Byron/gitoxide")
-    (synopsis
-     "Crate of the gitoxide project for handling prompts in the terminal")
-    (description
-     "This package provides a crate of the gitoxide project for handling prompts in
-the terminal.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-serial-test" ,rust-serial-test-2))))))
 
 (define-public rust-gix-protocol-0.33
   (package
-- 
2.41.0