[bug#75391,02/12] gnu: Add rust-vergen-9.

Message ID 91c90b5ac8d632b5cc977b5cd70710336186d6db.1736117349.git.wongandj@icloud.com
State New
Headers
Series gnu: Add wallust. |

Commit Message

Andrew Wong Jan. 5, 2025, 11:01 p.m. UTC
  * gnu/packages/crates-io.scm (rust-vergen-9): New variable.

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

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4866f074f9..6a11844b18 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -89568,6 +89568,37 @@  (define-public rust-vek-0.15
 engines, with SIMD support and focus on convenience.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-vergen-9
+  (package
+    (name "rust-vergen")
+    (version "9.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "vergen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0f86dz7mm0blfw17lggkkwm548mdjgq8f7llqxaz8pghz345zwii"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-cargo-metadata" ,rust-cargo-metadata-0.19)
+                       ("rust-derive-builder" ,rust-derive-builder-0.20)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-rustc-version" ,rust-rustc-version-0.4)
+                       ("rust-rustversion" ,rust-rustversion-1)
+                       ("rust-sysinfo" ,rust-sysinfo-0.32)
+                       ("rust-time" ,rust-time-0.3)
+                       ("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-8
   (package
     (name "rust-vergen")