feat: add COMMIT_HASH build time env var
This commit is contained in:
parent
e7d06a45f6
commit
3b7e976deb
3 changed files with 22 additions and 0 deletions
|
|
@ -44,6 +44,9 @@
|
|||
|
||||
# Additional environment variables can be set directly
|
||||
# MY_CUSTOM_VAR = "some value";
|
||||
COMMIT_HASH = builtins.substring 0 7 (
|
||||
if self ? rev then self.rev else "nixDirt"
|
||||
);
|
||||
};
|
||||
|
||||
craneLibLLvmTools = craneLib.overrideToolchain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue