Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-loader/build.rs')
| -rw-r--r-- | helix-loader/build.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-loader/build.rs b/helix-loader/build.rs index ea068983..cfa3a9ad 100644 --- a/helix-loader/build.rs +++ b/helix-loader/build.rs @@ -20,7 +20,8 @@ fn main() { .output() .ok() .filter(|output| output.status.success()) - .and_then(|x| String::from_utf8(x.stdout).ok()); + .and_then(|x| String::from_utf8(x.stdout).ok()) + .or_else(|| option_env!("HELIX_NIX_BUILD_REV").map(|s| s.to_string())); let calver = get_calver(); let version: Cow<_> = match &git_hash { |