haskell.compiler.ghcjs810: set up EM_CACHE for emcc

The compiler function test now causes emcc to try and lock its
cache (which is located in the nix store unless we set EM_CACHE).

Resolves #376582.
This commit is contained in:
sternenseemann 2025-02-10 23:29:07 +01:00
parent c6247d0591
commit 18440f3748

View File

@ -105,6 +105,9 @@ stdenv.mkDerivation {
touch $HOME/.cabal/config
cd lib/boot
export EM_CACHE="$HOME/.emscriptencache"
mkdir -p "$EM_CACHE"
mkdir -p $out/bin
mkdir -p $out/lib/${bootGhcjs.name}
lndir ${bootGhcjs}/bin $out/bin