Skip to content

Commit

Permalink
rev
Browse files Browse the repository at this point in the history
  • Loading branch information
waalge authored and rvcas committed Sep 28, 2023
1 parent f5fb84f commit 37ec2b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion crates/aiken/src/cmd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,5 @@ fn version() -> String {
"v{} {}",
built_info::PKG_VERSION,
built_info::GIT_COMMIT_HASH_SHORT
.unwrap_or(&env::var("GIT_COMMIT_HASH_SHORT").unwrap_or("unknown".to_string()))
)
}
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
GIT_COMMIT_HASH_SHORT = self.rev or "dirty"; # or self.dirtyRev;

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 = ''
Expand Down

0 comments on commit 37ec2b1

Please sign in to comment.