about summary refs log tree commit diff
path: root/pkgs/development/interpreters/wasmer
diff options
context:
space:
mode:
authorOleksii Filonenko <brightone@protonmail.com>2020-01-09 12:59:51 +0200
committerJon <jonringer@users.noreply.github.com>2020-01-16 12:29:04 -0800
commitcd99b82d8aa0ea5de8461208deca82b95a3a2e03 (patch)
tree8b24936a27c09c63f0cbf1d88a1ccac61bf30ab1 /pkgs/development/interpreters/wasmer
parent4373dba15590ff7302a68b9c3f05c9a9e4962030 (diff)
downloadnixlib-cd99b82d8aa0ea5de8461208deca82b95a3a2e03.tar
nixlib-cd99b82d8aa0ea5de8461208deca82b95a3a2e03.tar.gz
nixlib-cd99b82d8aa0ea5de8461208deca82b95a3a2e03.tar.bz2
nixlib-cd99b82d8aa0ea5de8461208deca82b95a3a2e03.tar.lz
nixlib-cd99b82d8aa0ea5de8461208deca82b95a3a2e03.tar.xz
nixlib-cd99b82d8aa0ea5de8461208deca82b95a3a2e03.tar.zst
nixlib-cd99b82d8aa0ea5de8461208deca82b95a3a2e03.zip
wasmer: init at 0.13.0
Diffstat (limited to 'pkgs/development/interpreters/wasmer')
-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;
+  };
+}