nixpkgs/pkgs/servers/monitoring/openobserve/build.rs.patch
Silvan Mosberger f90974b657 Reapply "openobserve: 0.7.2 -> 0.8.1"
This reverts commit ac637ef21e.

The original PR (https://github.com/NixOS/nixpkgs/pull/289522) broke the
`pkgs/by-name` check on master,
so it was reverted in https://github.com/NixOS/nixpkgs/pull/289655.

This reapplies the original commits and makes sure that the
`pkgs/by-name` check works by moving it out of `pkgs/by-name`.
2024-02-19 01:22:42 +01:00

30 lines
882 B
Diff

diff --git a/build.rs b/build.rs
index 0f66ace..be74fad 100644
--- a/build.rs
+++ b/build.rs
@@ -99,24 +99,5 @@ fn main() -> Result<()> {
&["proto"],
)?;
- // build information
- let output = Command::new("git")
- .args(["describe", "--tags", "--abbrev=0"])
- .output()
- .unwrap();
- let git_tag = String::from_utf8(output.stdout).unwrap();
- println!("cargo:rustc-env=GIT_VERSION={git_tag}");
-
- let output = Command::new("git")
- .args(["rev-parse", "HEAD"])
- .output()
- .unwrap();
- let git_commit = String::from_utf8(output.stdout).unwrap();
- println!("cargo:rustc-env=GIT_COMMIT_HASH={git_commit}");
-
- let now: DateTime<Utc> = Utc::now();
- let build_date = now.to_rfc3339_opts(SecondsFormat::Secs, true);
- println!("cargo:rustc-env=GIT_BUILD_DATE={build_date}");
-
Ok(())
}