emscripten: add binaryen dep for compiling to WASM
This commit is contained in:
parent
a8c48bb68b
commit
8f33800061
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
{ stdenv, fetchFromGitHub, emscriptenfastcomp, python, nodejs, closurecompiler, jre }:
|
||||
{ stdenv, fetchFromGitHub, emscriptenfastcomp, python, nodejs, closurecompiler
|
||||
, jre, binaryen, enableWasm ? true
|
||||
}:
|
||||
|
||||
let
|
||||
rev = "1.37.10";
|
||||
|
@ -36,6 +38,9 @@ stdenv.mkDerivation {
|
|||
echo "COMPILER_ENGINE = NODE_JS" >> $out/${appdir}/config
|
||||
echo "CLOSURE_COMPILER = '${closurecompiler}/share/java/closure-compiler-v${closurecompiler.version}.jar'" >> $out/${appdir}/config
|
||||
echo "JAVA = '${jre}/bin/java'" >> $out/${appdir}/config
|
||||
''
|
||||
+ stdenv.lib.optionalString enableWasm ''
|
||||
echo "BINARYEN_ROOT = '${binaryen}'" >> $out/share/emscripten/config
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue