biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / monitoring / openobserve / build.rs.patch
blob1cfb91c7c12b733259f857e94f730a771c19bc6a
1 diff --git a/build.rs b/build.rs
2 index 0f66ace..be74fad 100644
3 --- a/build.rs
4 +++ b/build.rs
5 @@ -99,24 +99,5 @@ fn main() -> Result<()> {
6 &["proto"],
7 )?;
9 - // build information
10 - let output = Command::new("git")
11 - .args(["describe", "--tags", "--abbrev=0"])
12 - .output()
13 - .unwrap();
14 - let git_tag = String::from_utf8(output.stdout).unwrap();
15 - println!("cargo:rustc-env=GIT_VERSION={git_tag}");
17 - let output = Command::new("git")
18 - .args(["rev-parse", "HEAD"])
19 - .output()
20 - .unwrap();
21 - let git_commit = String::from_utf8(output.stdout).unwrap();
22 - println!("cargo:rustc-env=GIT_COMMIT_HASH={git_commit}");
24 - let now: DateTime<Utc> = Utc::now();
25 - let build_date = now.to_rfc3339_opts(SecondsFormat::Secs, true);
26 - println!("cargo:rustc-env=GIT_BUILD_DATE={build_date}");
28 Ok(())