Subject: [bug#67024] [PATCH 42/54] gnu: Add rust-gix-negotiate-0.8.

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

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

Change-Id: I65508d41a1a2e4e9cad12e5899a4712ed7001bf6
---
 gnu/packages/crates-io.scm | 42 ++++++++++++++++++++++++++++++--------
 1 file changed, 33 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d1d8e55aadd..73b74a42894 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31437,8 +31437,40 @@ (define-public rust-gix-mailmap-0.13
 parsing mailmap files.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-gix-negotiate-0.8
+  (package
+    (name "rust-gix-negotiate")
+    (version "0.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gix-negotiate" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "01408hs82nhj40arkdx145cfmdccf7pydf89sywd3ihik6zrf5kg"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ;user of undeclared crate gix_testtools
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-gix-commitgraph" ,rust-gix-commitgraph-0.21)
+                       ("rust-gix-date" ,rust-gix-date-0.8)
+                       ("rust-gix-hash" ,rust-gix-hash-0.13)
+                       ("rust-gix-object" ,rust-gix-object-0.37)
+                       ("rust-gix-revwalk" ,rust-gix-revwalk-0.8)
+                       ("rust-smallvec" ,rust-smallvec-1)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-odb" ,rust-gix-odb-0.53))))
+    (home-page "https://github.com/Byron/gitoxide")
+    (synopsis
+     "Implements Git's negotiation algorithms as part of Gixoxide")
+    (description
+     "Gitoxide is a pure Rust implementation of Git.  This package consists of
+Git's negotiation algorithms.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-gix-negotiate-0.2
   (package
+    (inherit rust-gix-negotiate-0.8)
     (name "rust-gix-negotiate")
     (version "0.2.1")
     (source
@@ -31448,7 +31480,6 @@ (define-public rust-gix-negotiate-0.2
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "137hyq036adi5kapw98vd9b0087lxljfkjaz81glmr0jx7qkwp4l"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f      ; use of undeclared crate or module `gix_testtools`
        #:cargo-inputs
@@ -31458,14 +31489,7 @@ (define-public rust-gix-negotiate-0.2
         ("rust-gix-object" ,rust-gix-object-0.30)
         ("rust-gix-revision" ,rust-gix-revision-0.15)
         ("rust-smallvec" ,rust-smallvec-1)
-        ("rust-thiserror" ,rust-thiserror-1))))
-    (home-page "https://github.com/Byron/gitoxide")
-    (synopsis
-     "Crate of the gitoxide project implementing negotiation algorithms")
-    (description
-     "This package provides a crate of the gitoxide project implementing
-negotiation algorithms.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-thiserror" ,rust-thiserror-1))))))
 
 (define-public rust-gix-object-0.37
   (package
-- 
2.41.0