Subject: [bug#67024] [PATCH 17/54] gnu: Add rust-gix-commitgraph-0.21.

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

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

Change-Id: Ibdc9424cce7219424fbc5102d400096afe95fb1b
---
 gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++++------
 1 file changed, 29 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 748414f30b8..2e42323ba99 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30634,8 +30634,36 @@ (define-public rust-gix-command-0.2
 command execution.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-gix-commitgraph-0.21
+  (package
+    (name "rust-gix-commitgraph")
+    (version "0.21.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gix-commitgraph" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "12nzyh8gyg0k15swsy51m1iy521a7p5xbdg9pw1a1w1cw9g9fnp7"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bstr" ,rust-bstr-1)
+                       ("rust-document-features" ,rust-document-features-0.2)
+                       ("rust-gix-chunk" ,rust-gix-chunk-0.4)
+                       ("rust-gix-features" ,rust-gix-features-0.35)
+                       ("rust-gix-hash" ,rust-gix-hash-0.13)
+                       ("rust-memmap2" ,rust-memmap2-0.7)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-thiserror" ,rust-thiserror-1))))
+    (home-page "https://github.com/Byron/gitoxide")
+    (synopsis "Read only access to Git the commitgraph file format")
+    (description "Part of Gitoxide, a pure Rust implementation of Git.  This
+package provides read only access to git commitgraph file.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-gix-commitgraph-0.16
   (package
+    (inherit rust-gix-commitgraph-0.21)
     (name "rust-gix-commitgraph")
     (version "0.16.0")
     (source
@@ -30645,7 +30673,6 @@ (define-public rust-gix-commitgraph-0.16
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "028s0ai44gb9ynic2ch3ingzg8h44c47q90xlzk4fp6mnghhljg8"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-bstr" ,rust-bstr-1)
@@ -30655,11 +30682,7 @@ (define-public rust-gix-commitgraph-0.16
         ("rust-gix-hash" ,rust-gix-hash-0.11)
         ("rust-memmap2" ,rust-memmap2-0.5)
         ("rust-serde" ,rust-serde-1)
-        ("rust-thiserror" ,rust-thiserror-1))))
-    (home-page "https://github.com/Byron/gitoxide")
-    (synopsis "Read-only access to the git commitgraph file format")
-    (description "Read-only access to the git commitgraph file format.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-thiserror" ,rust-thiserror-1))))))
 
 (define-public rust-gix-config-0.23
   (package
-- 
2.41.0