1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5}:
6
7stdenv.mkDerivation rec {
8 pname = "wamr";
9 version = "1.2.2";
10
11 src = fetchFromGitHub {
12 owner = "bytecodealliance";
13 repo = "wasm-micro-runtime";
14 rev = "WAMR-${version}";
15 hash = "sha256-jpT42up9HAVJpo03cFrffQQk2JiHEAEepBGlU4RUfNU=";
16 };
17
18 nativeBuildInputs = [ cmake ];
19
20 sourceRoot = "source/product-mini/platforms/linux";
21
22 meta = with lib; {
23 description = "WebAssembly Micro Runtime";
24 homepage = "https://github.com/bytecodealliance/wasm-micro-runtime";
25 license = licenses.asl20;
26 maintainers = with maintainers; [ ereslibre ];
27 # TODO (ereslibre): this derivation should be improved to support
28 # more platforms.
29 broken = !stdenv.isLinux;
30 };
31}