emscripten: ensure node_modules are available

If not set, attempts to use emscripten fails when acorn is missing as a
dependency. These, from emscripten-node-modules, need to be available at
runtime.
This commit is contained in:
Will Cohen 2023-10-10 13:57:59 -04:00
parent 9d12e6771c
commit 7f262b6859

View File

@ -85,6 +85,9 @@ stdenv.mkDerivation rec {
cp -r . $appdir
chmod -R +w $appdir
mkdir -p $appdir/node_modules
cp -r ${nodeModules}/* $appdir/node_modules
mkdir -p $out/bin
for b in em++ em-config emar embuilder.py emcc emcmake emconfigure emmake emranlib emrun emscons emsize; do
makeWrapper $appdir/$b $out/bin/$b \