This commit is contained in:
waalge 2023-09-27 21:03:47 +00:00
parent c925d09792
commit 873b39169e
2 changed files with 1 additions and 2 deletions

View File

@ -58,6 +58,5 @@ fn version() -> String {
"v{} {}", "v{} {}",
built_info::PKG_VERSION, built_info::PKG_VERSION,
built_info::GIT_COMMIT_HASH_SHORT built_info::GIT_COMMIT_HASH_SHORT
.unwrap_or(&env::var("GIT_COMMIT_HASH_SHORT").unwrap_or("unknown".to_string()))
) )
} }

View File

@ -34,7 +34,7 @@
GIT_COMMIT_HASH_SHORT = self.rev or "dirty"; # or self.dirtyRev; GIT_COMMIT_HASH_SHORT = self.rev or "dirty"; # or self.dirtyRev;
postPatch = '' postPatch = ''
substituteInPlace crates/aiken/src/cmd/mod.rs --replace "built_info::GIT_COMMIT_HASH_SHORT" "\"$GIT_COMMIT_HASH_SHORT\"" substituteInPlace crates/aiken/src/cmd/mod.rs --replace "built_info::GIT_COMMIT_HASH_SHORT" "\"$GIT_COMMIT_HASH_SHORT\".to_string()"
''; '';
postInstall = '' postInstall = ''