diff options
author | Alastair Pharo <asppsa@gmail.com> | 2017-06-04 13:50:51 +1000 |
---|---|---|
committer | Alastair Pharo <asppsa@gmail.com> | 2017-06-04 13:50:51 +1000 |
commit | 8f33800061eff8a8b1ef7a89f66893247a93ab8b (patch) | |
tree | e9dc925a974cb731f42afcdbd20d4d3eff7bb12d /pkgs/development/compilers/emscripten | |
parent | a8c48bb68b955e3552b8d7515f20f08e224c1509 (diff) |
emscripten: add binaryen dep for compiling to WASM
Diffstat (limited to 'pkgs/development/compilers/emscripten')
-rw-r--r-- | pkgs/development/compilers/emscripten/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/compilers/emscripten/default.nix b/pkgs/development/compilers/emscripten/default.nix index ad1cd437ffab..f118a11e4193 100644 --- a/pkgs/development/compilers/emscripten/default.nix +++ b/pkgs/development/compilers/emscripten/default.nix @@ -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; { |