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

View File

@ -31,10 +31,11 @@
src = pkgs.lib.cleanSourceWith { src = self; }; src = pkgs.lib.cleanSourceWith { src = self; };
cargoLock.lockFile = ./Cargo.lock; 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 = '' 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 = '' postInstall = ''