feat: add COMMIT_HASH build time env var

This commit is contained in:
Tamipes 2025-11-25 16:27:43 +01:00
parent e7d06a45f6
commit 3b7e976deb
3 changed files with 22 additions and 0 deletions

View file

@ -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