mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
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:
parent
9d12e6771c
commit
7f262b6859
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user