From 86f6a76225a19ba95b9f71708a96d4f812962e43 Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Sun, 5 Jan 2025 18:01:07 -0500 Subject: [PATCH] gnu: Add rust-vergen-git2-1. * gnu/packages/crates-io.scm (rust-vergen-git2-1): New variable. Change-Id: Ic70fc7f6e1062e54c70554f67033bac7909322d4 Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 6a262bcfa0..7e7113c568 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -89702,6 +89702,40 @@ (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 + `(#:tests? #f ; use of undeclared crate or module `test_util` + #: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)) + #:cargo-development-inputs (("rust-lazy-static" ,rust-lazy-static-1) + ("rust-regex" ,rust-regex-1) + ("rust-serial-test" ,rust-serial-test-3) + ("rust-temp-env" ,rust-temp-env-0.3)))) + (native-inputs (list pkg-config)) + (inputs (list libgit2-1.8)) + (home-page "https://github.com/rustyhorde/vergen") + (synopsis "Generate @code{cargo:rustc-env} instructions via @code{build.rs}") + (description + "This package provides @code{cargo:rustc-env} instructions via +@code{build.rs} for use in your code via the @code{env!} macro.") + (license (list license:expat license:asl2.0)))) + (define-public rust-vergen-lib-0.1 (package (name "rust-vergen-lib")