mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +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);
|
return String::from(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
format!(
|
let version = env!("CARGO_PKG_VERSION");
|
||||||
"{} ({})",
|
let commit =
|
||||||
env!("CARGO_PKG_VERSION"),
|
option_env!("NIRI_BUILD_COMMIT").unwrap_or(git_version!(fallback = "unknown commit"));
|
||||||
git_version!(fallback = "unknown commit"),
|
|
||||||
)
|
format!("{version} ({commit})")
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_monotonic_time() -> Duration {
|
pub fn get_monotonic_time() -> Duration {
|
||||||
|
|||||||
Reference in New Issue
Block a user