summary refs log tree commit diff
diff options
context:
space:
mode:
authorErin van der Veen <erin.vanderveen@tweag.io>2023-07-03 22:02:39 +0200
committerErin van der Veen <erin.vanderveen@tweag.io>2023-07-03 22:02:39 +0200
commit05fa4387331f380b6132dbd84cca233d64480b14 (patch)
treee953420254078003efa891a0772946e24b0b1e02
parent2920b6fc16a9ed5d51429e94238b28306ceda79e (diff)
downloadnixpkgs-05fa4387331f380b6132dbd84cca233d64480b14.tar
nixpkgs-05fa4387331f380b6132dbd84cca233d64480b14.tar.gz
nixpkgs-05fa4387331f380b6132dbd84cca233d64480b14.tar.bz2
nixpkgs-05fa4387331f380b6132dbd84cca233d64480b14.tar.lz
nixpkgs-05fa4387331f380b6132dbd84cca233d64480b14.tar.xz
nixpkgs-05fa4387331f380b6132dbd84cca233d64480b14.tar.zst
nixpkgs-05fa4387331f380b6132dbd84cca233d64480b14.zip
tree-sitter: set emcc cache outside of nix store
-rw-r--r--pkgs/development/tools/parsing/tree-sitter/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/tools/parsing/tree-sitter/default.nix b/pkgs/development/tools/parsing/tree-sitter/default.nix
index 30adef7ccab..a36d3613901 100644
--- a/pkgs/development/tools/parsing/tree-sitter/default.nix
+++ b/pkgs/development/tools/parsing/tree-sitter/default.nix
@@ -124,6 +124,8 @@ rustPlatform.buildRustPackage {
   # minifying the JavaScript; passing it allows us to side-step more Node
   # JS dependencies for installation.
   preBuild = lib.optionalString webUISupport ''
+    mkdir -p .emscriptencache
+    export EM_CACHE=$(pwd)/.emscriptencache
     bash ./script/build-wasm --debug
   '';