diff --git a/flake.nix b/flake.nix index 8adc9c4..2f75e07 100644 --- a/flake.nix +++ b/flake.nix @@ -16,15 +16,6 @@ }; in pkgs.mkShell { - # Ref: https://github.com/NixOS/nixpkgs/issues/139943 - # EM_CONFIG = pkgs.writeText ".emscripten" '' - # EMSCRIPTEN_ROOT = '${pkgs.emscripten}/share/emscripten' - # LLVM_ROOT = '${pkgs.emscripten.llvmEnv}/bin' - # BINARYEN_ROOT = '${pkgs.binaryen}' - # NODE_JS = '${pkgs.nodejs_24}/bin/node' - # CACHE = '${toString ./.cache}' - # ''; - packages = with pkgs; [ # Compilation gnumake @@ -39,6 +30,7 @@ shell = "${pkgs.bash}/bin/bash"; shellHook = '' + # Ref: https://github.com/NixOS/nixpkgs/issues/139943 export EM_CACHE=$PWD/.emscripten_cache cp -r ${pkgs.emscripten}/share/emscripten/cache $EM_CACHE chmod u+rwX -R $EM_CACHE