hare: set HARECACHE in setupHook

If HARECACHE is unset, it hare will default to attempting to cache files
relative to $HOME, which isn't writable during a build. Set HARECACHE to
a suitable location so packages that are built with hare don't have to
manually handle this.
This commit is contained in:
Michael Auchter 2022-06-22 15:24:16 +00:00
parent 8ecf252eda
commit 5453969a2a

View file

@ -1,3 +1,5 @@
export HARECACHE="$NIX_BUILD_TOP/.harecache"
addHarepath () {
for haredir in third-party stdlib; do
if [[ -d "$1/src/hare/$haredir" ]]; then