This commit is contained in:
waalge 2023-09-27 21:27:55 +00:00 committed by Lucas
parent 37ec2b121b
commit 14a6141046
1 changed files with 3 additions and 2 deletions

View File

@ -31,10 +31,11 @@
src = pkgs.lib.cleanSourceWith { src = self; };
cargoLock.lockFile = ./Cargo.lock;
GIT_COMMIT_HASH_SHORT = self.rev or "dirty"; # or self.dirtyRev;
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()"
substituteInPlace crates/aiken/src/cmd/mod.rs \
--replace "built_info::GIT_COMMIT_HASH_SHORT" "\"$GIT_COMMIT_HASH_SHORT\".to_string()"
'';
postInstall = ''