mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
Add NIRI_BUILD_COMMIT env variable override
This commit is contained in:
+5
-5
@@ -83,11 +83,11 @@ pub fn version() -> String {
|
||||
return String::from(v);
|
||||
}
|
||||
|
||||
format!(
|
||||
"{} ({})",
|
||||
env!("CARGO_PKG_VERSION"),
|
||||
git_version!(fallback = "unknown commit"),
|
||||
)
|
||||
let version = env!("CARGO_PKG_VERSION");
|
||||
let commit =
|
||||
option_env!("NIRI_BUILD_COMMIT").unwrap_or(git_version!(fallback = "unknown commit"));
|
||||
|
||||
format!("{version} ({commit})")
|
||||
}
|
||||
|
||||
pub fn get_monotonic_time() -> Duration {
|
||||
|
||||
Reference in New Issue
Block a user