depot/third_party/nixpkgs/pkgs/development/compilers/hare/setup-hook.sh

12 lines
275 B
Bash
Raw Normal View History

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