fix rust version
This commit is contained in:
parent
14a6141046
commit
dbd4fe2aab
|
@ -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")
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in New Issue