From 20a4bbe23b3039f26f739b026f90e4613a20a98c Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Mon, 25 Feb 2019 20:06:41 -0500 Subject: [PATCH] =?UTF-8?q?systems:=20add=20=E2=80=9Cemultator=E2=80=9D=20?= =?UTF-8?q?for=20wasm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v8 can run any wasm bytecode --- lib/systems/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/systems/default.nix b/lib/systems/default.nix index b24eb4245ff..e4629fc9bf8 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