summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Wong <wongandj@icloud.com>2025-01-05 18:01:07 -0500
committerEfraim Flashner <efraim@flashner.co.il>2025-01-06 12:23:04 +0200
commit86f6a76225a19ba95b9f71708a96d4f812962e43 (patch)
tree07657e6a468165b4adc2ab77bd256425c376472e
parenta50bb1614bc0684a7ef853704dc8991baa1b59d1 (diff)
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 <efraim@flashner.co.il>
-rw-r--r--gnu/packages/crates-io.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6a262bcfa05..7e7113c5681 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -89702,6 +89702,40 @@ engines, with SIMD support and focus on convenience.")
#: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")