fix rust version

This commit is contained in:
waalge 2023-09-27 22:25:55 +00:00
parent cf7020c528
commit 15a43d1a87
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,4 @@
use clap::Parser;
use std::env;
pub mod blueprint;
pub mod build;
@ -57,6 +56,6 @@ fn version() -> String {
format!(
"v{} {}",
built_info::PKG_VERSION,
built_info::GIT_COMMIT_HASH_SHORT
built_info::GIT_COMMIT_HASH_SHORT.unwrap_or("unknown")
)
}

View File

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