about summary refs log tree commit diff
path: root/pkgs/development/tools/wasmedge
diff options
context:
space:
mode:
authorMostly Void <dit7ya@users.noreply.github.com>2022-08-04 03:50:14 +0530
committerGitHub <noreply@github.com>2022-08-04 00:20:14 +0200
commit2210891a585828873d1abfdfd1198cdd57d0de34 (patch)
treeb4c5b0a60ef14dc7c70694949f35bc3bd2e521af /pkgs/development/tools/wasmedge
parenta9cb4fcace026bc8e04569142912de15256135a0 (diff)
wasmedge: init at 0.10.1 (#184801)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development/tools/wasmedge')
-rw-r--r--pkgs/development/tools/wasmedge/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/tools/wasmedge/default.nix b/pkgs/development/tools/wasmedge/default.nix
new file mode 100644
index 0000000000000..f2a4863ecbcae
--- /dev/null
+++ b/pkgs/development/tools/wasmedge/default.nix
@@ -0,0 +1,42 @@
+{ lib
+, fetchFromGitHub
+, llvmPackages
+, boost
+, cmake
+, gtest
+, spdlog
+}:
+
+llvmPackages.stdenv.mkDerivation rec {
+  pname = "wasmedge";
+  version = "0.10.1";
+
+  src = fetchFromGitHub {
+    owner = "WasmEdge";
+    repo = "WasmEdge";
+    rev = version;
+    sha256 = "sha256-SJi8CV0sa+g+Ngvdw8+SxV3kHqoiKBhYUwDLZM4+jX0=";
+  };
+
+  buildInputs = [
+    boost
+    spdlog
+    llvmPackages.llvm
+  ];
+
+  nativeBuildInputs = [ cmake llvmPackages.lld ];
+
+  checkInputs = [ gtest ];
+
+  cmakeFlags = [
+    "-DCMAKE_BUILD_TYPE=Release"
+    "-DWASMEDGE_BUILD_TESTS=OFF" # Tests are downloaded using git
+  ];
+
+  meta = with lib; {
+    homepage = "https://wasmedge.org/";
+    license = with licenses; [ asl20 ];
+    description = "A lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications";
+    maintainers = with maintainers; [ dit7ya ];
+  };
+}