nixpkgs/pkgs/development/compilers/hare/setup-hook.sh
Michael Auchter 5453969a2a 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.
2022-06-23 14:37:11 +00:00

12 lines
275 B
Bash

export HARECACHE="$NIX_BUILD_TOP/.harecache"
addHarepath () {
for haredir in third-party stdlib; do
if [[ -d "$1/src/hare/$haredir" ]]; then
addToSearchPath HAREPATH "$1/src/hare/$haredir"
fi
done
}
addEnvHooks "$hostOffset" addHarepath