about summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-01-17 17:08:16 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2020-01-17 17:08:16 +0100
commitbcd8c6b8dce40e62cbe70031f7def119b8b16c0c (patch)
tree8ccc674e1dd682a78eafa3b0966840d8332ec192 /pkgs/development/interpreters
parente5fa0ab1c409c34f9592a24778030d05f762a072 (diff)
parentf0ce34634a6d93053646f563ba2abd6246738765 (diff)
downloadnixlib-bcd8c6b8dce40e62cbe70031f7def119b8b16c0c.tar
nixlib-bcd8c6b8dce40e62cbe70031f7def119b8b16c0c.tar.gz
nixlib-bcd8c6b8dce40e62cbe70031f7def119b8b16c0c.tar.bz2
nixlib-bcd8c6b8dce40e62cbe70031f7def119b8b16c0c.tar.lz
nixlib-bcd8c6b8dce40e62cbe70031f7def119b8b16c0c.tar.xz
nixlib-bcd8c6b8dce40e62cbe70031f7def119b8b16c0c.tar.zst
nixlib-bcd8c6b8dce40e62cbe70031f7def119b8b16c0c.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/wasmer/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/wasmer/default.nix b/pkgs/development/interpreters/wasmer/default.nix
new file mode 100644
index 000000000000..7c270e5fb447
--- /dev/null
+++ b/pkgs/development/interpreters/wasmer/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, cmake
+, llvmPackages
+, pkg-config
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "wasmer";
+  version = "0.13.0";
+
+  src = fetchFromGitHub {
+    owner = "wasmerio";
+    repo = pname;
+    rev = version;
+    sha256 = "1k9zd2vhrbvxlpkh21m39alk5lfhd3xa25k0awis27plfpv8fqcq";
+    fetchSubmodules = true;
+  };
+
+  cargoSha256 = "1yp7kandh5hh8hkzlmqpj05vwgr5v4nil8blf3scbppg865qk3rq";
+
+  nativeBuildInputs = [ cmake pkg-config ];
+
+  LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
+
+  meta = with lib; {
+    description = "The Universal WebAssembly Runtime";
+    longDescription = ''
+      Wasmer is a standalone WebAssembly runtime for running WebAssembly outside
+      of the browser, supporting WASI and Emscripten. Wasmer can be used
+      standalone (via the CLI) and embedded in different languages, running in
+      x86 and ARM devices.
+    '';
+    homepage = "https://wasmer.io/";
+    license = licenses.mit;
+    maintainers = with maintainers; [ filalex77 ];
+    platforms = platforms.all;
+  };
+}