mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 11:00:19 +03:00
emscripten: add binaryen dep for compiling to WASM
This commit is contained in:
parent
a8c48bb68b
commit
8f33800061
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, emscriptenfastcomp, python, nodejs, closurecompiler, jre }:
|
{ stdenv, fetchFromGitHub, emscriptenfastcomp, python, nodejs, closurecompiler
|
||||||
|
, jre, binaryen, enableWasm ? true
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
rev = "1.37.10";
|
rev = "1.37.10";
|
||||||
@ -36,6 +38,9 @@ stdenv.mkDerivation {
|
|||||||
echo "COMPILER_ENGINE = NODE_JS" >> $out/${appdir}/config
|
echo "COMPILER_ENGINE = NODE_JS" >> $out/${appdir}/config
|
||||||
echo "CLOSURE_COMPILER = '${closurecompiler}/share/java/closure-compiler-v${closurecompiler.version}.jar'" >> $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
|
echo "JAVA = '${jre}/bin/java'" >> $out/${appdir}/config
|
||||||
|
''
|
||||||
|
+ stdenv.lib.optionalString enableWasm ''
|
||||||
|
echo "BINARYEN_ROOT = '${binaryen}'" >> $out/share/emscripten/config
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user