2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-05-24 13:37:59 +00:00
|
|
|
pname = "wamr";
|
|
|
|
version = "1.2.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bytecodealliance";
|
|
|
|
repo = "wasm-micro-runtime";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "WAMR-${finalAttrs.version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-jpT42up9HAVJpo03cFrffQQk2JiHEAEepBGlU4RUfNU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${finalAttrs.src.name}/product-mini/platforms/linux";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "WebAssembly Micro Runtime";
|
|
|
|
homepage = "https://github.com/bytecodealliance/wasm-micro-runtime";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ereslibre ];
|
|
|
|
# TODO (ereslibre): this derivation should be improved to support
|
|
|
|
# more platforms.
|
|
|
|
broken = !stdenv.isLinux;
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
})
|