Move flake.nix issues/139943 Ref

This commit is contained in:
Emile Clark-Boman 2025-07-22 04:50:53 +10:00
parent 9f4454fff1
commit a5de499495

View file

@ -16,15 +16,6 @@
}; };
in in
pkgs.mkShell { 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; [ packages = with pkgs; [
# Compilation # Compilation
gnumake gnumake
@ -39,6 +30,7 @@
shell = "${pkgs.bash}/bin/bash"; shell = "${pkgs.bash}/bin/bash";
shellHook = '' shellHook = ''
# Ref: https://github.com/NixOS/nixpkgs/issues/139943
export EM_CACHE=$PWD/.emscripten_cache export EM_CACHE=$PWD/.emscripten_cache
cp -r ${pkgs.emscripten}/share/emscripten/cache $EM_CACHE cp -r ${pkgs.emscripten}/share/emscripten/cache $EM_CACHE
chmod u+rwX -R $EM_CACHE chmod u+rwX -R $EM_CACHE