nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git a/build.rs b/build.rs
2index d7c26bb..ffaed27 100644
3--- a/build.rs
4+++ b/build.rs
5@@ -22,16 +22,8 @@ fn main() -> Result<(), String> {
6 } else {
7 " without LSP Support"
8 };
9- let git_hash = std::process::Command::new("git")
10- .args(["rev-parse", "HEAD"])
11- .output()
12- .unwrap();
13- let git_hash = String::from_utf8(git_hash.stdout).unwrap();
14- let git_hash = git_hash.trim();
15- let build_date = chrono::Local::now().format("%Y-%m-%d_%H:%M:%S");
16-
17 println!(
18- "cargo:rustc-env=EXTRA_VERSION_STRING= ({git_hash}) built at {build_date}{build_features}"
19+ "cargo:rustc-env=EXTRA_VERSION_STRING= (@GIT_HASH@) committed at @GIT_DATE@{build_features}"
20 );
21 } else {
22 println!("cargo:rustc-env=EXTRA_VERSION_STRING=");