From 18440f37482abb37fde3b946815e94cba1f81b83 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 10 Feb 2025 23:29:07 +0100 Subject: [PATCH] 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. --- pkgs/development/compilers/ghcjs/8.10/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/ghcjs/8.10/default.nix b/pkgs/development/compilers/ghcjs/8.10/default.nix index d3f74f52e86e..c46a84e87791 100644 --- a/pkgs/development/compilers/ghcjs/8.10/default.nix +++ b/pkgs/development/compilers/ghcjs/8.10/default.nix @@ -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