shortRev
This commit is contained in:
parent
873b39169e
commit
cf7020c528
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in New Issue