From 5453969a2a1aa738c2a2a6089b3aa8a83193d44c Mon Sep 17 00:00:00 2001 From: Michael Auchter Date: Wed, 22 Jun 2022 15:24:16 +0000 Subject: [PATCH] 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. --- pkgs/development/compilers/hare/setup-hook.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/hare/setup-hook.sh b/pkgs/development/compilers/hare/setup-hook.sh index d2d2c34354d..999b91df122 100644 --- a/pkgs/development/compilers/hare/setup-hook.sh +++ b/pkgs/development/compilers/hare/setup-hook.sh @@ -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