try patch

This commit is contained in:
waalge 2023-09-27 20:54:04 +00:00
parent a2359aeaa5
commit c925d09792
1 changed files with 4 additions and 1 deletions

View File

@ -31,8 +31,11 @@
src = pkgs.lib.cleanSourceWith { src = self; };
cargoLock.lockFile = ./Cargo.lock;
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\""
'';
postInstall = ''
mkdir -p $out/share/zsh/site-functions