summary refs log tree commit diff
path: root/lib/systems/default.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-02-25 20:06:41 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2019-02-25 20:07:43 -0500
commit20a4bbe23b3039f26f739b026f90e4613a20a98c (patch)
tree7a731f0ff6c9e189ab2800dc0a80eb228498846b /lib/systems/default.nix
parentf455a07f13934285931c8bfc97fe10a3f0f3430d (diff)
downloadnixpkgs-20a4bbe23b3039f26f739b026f90e4613a20a98c.tar
nixpkgs-20a4bbe23b3039f26f739b026f90e4613a20a98c.tar.gz
nixpkgs-20a4bbe23b3039f26f739b026f90e4613a20a98c.tar.bz2
nixpkgs-20a4bbe23b3039f26f739b026f90e4613a20a98c.tar.lz
nixpkgs-20a4bbe23b3039f26f739b026f90e4613a20a98c.tar.xz
nixpkgs-20a4bbe23b3039f26f739b026f90e4613a20a98c.tar.zst
nixpkgs-20a4bbe23b3039f26f739b026f90e4613a20a98c.zip
systems: add “emultator” for wasm
v8 can run any wasm bytecode
Diffstat (limited to 'lib/systems/default.nix')
-rw-r--r--lib/systems/default.nix2
1 files changed, 2 insertions, 0 deletions
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