Subject: [PATCH 04/12] gnu: Add rust-vergen-git2-1.

From: Andrew Wong <[email-masked]>
Date: Sun, 5 Jan 2025 18:01:07 -0500

* gnu/packages/crates-io.scm (rust-vergen-git2-1): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d32eed0b66..9e04e17965 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -89660,6 +89660,35 @@ (define-public rust-vergen-3
        #:cargo-development-inputs (("rust-lazy-static" ,rust-lazy-static-1)
                                    ("rust-regex" ,rust-regex-1))))))
 
+(define-public rust-vergen-git2-1
+  (package
+    (name "rust-vergen-git2")
+    (version "1.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "vergen-git2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1mri3bffr6578cigqrpcn8b0bfcgkvbskdxswg8ym7vlv1ly0qsy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-derive-builder" ,rust-derive-builder-0.20)
+                       ("rust-git2" ,rust-git2-0.19)
+                       ("rust-rustversion" ,rust-rustversion-1)
+                       ("rust-time" ,rust-time-0.3)
+                       ("rust-vergen" ,rust-vergen-9)
+                       ("rust-vergen-lib" ,rust-vergen-lib-0.1))))
+    (home-page "https://github.com/rustyhorde/vergen")
+    (synopsis
+     "Generate 'cargo:rustc-env' instructions via 'build.rs' for use in your code via the 'env!' macro")
+    (description
+     "This package provides Generate cargo:rustc-env instructions via build.rs for use in your code via the
+env! macro.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-vergen-lib-0.1
   (package
     (name "rust-vergen-lib")
-- 
2.47.1