diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-02-25 20:06:41 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-02-25 20:07:43 -0500 |
commit | 20a4bbe23b3039f26f739b026f90e4613a20a98c (patch) | |
tree | 7a731f0ff6c9e189ab2800dc0a80eb228498846b /lib/systems | |
parent | f455a07f13934285931c8bfc97fe10a3f0f3430d (diff) |
systems: add “emultator” for wasm
v8 can run any wasm bytecode
Diffstat (limited to 'lib/systems')
-rw-r--r-- | lib/systems/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index b24eb4245ff8..e4629fc9bf80 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -106,6 +106,8 @@ rec { then "${wine}/bin/${wine-name}" else if final.isLinux && pkgs.stdenv.hostPlatform.isLinux then "${qemu-user}/bin/qemu-${final.qemuArch}" + else if final.isWasm + then "${pkgs.v8}/bin/d8" else throw "Don't know how to run ${final.config} executables."; } // mapAttrs (n: v: v final.parsed) inspect.predicates |