wasmtime: init and use for emulation

This isn’t really an "emulator" but it’s the closest concept we have
right now.
This commit is contained in:
Matthew Bauer
2019-04-15 22:22:16 -04:00
parent d591a109be
commit dbb94b984f
4 changed files with 1516 additions and 2 deletions

View File

@@ -115,8 +115,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 if final.isWasi
then "${pkgs.wasmtime}/bin/wasmtime"
else throw "Don't know how to run ${final.config} executables.";
} // mapAttrs (n: v: v final.parsed) inspect.predicates