systems: add “emultator” for wasm

v8 can run any wasm bytecode
This commit is contained in:
Matthew Bauer 2019-02-25 20:06:41 -05:00
parent f455a07f13
commit 20a4bbe23b

View file

@ -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