2022-06-26 10:26:21 +00:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wasmtime";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "0.38.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bytecodealliance";
|
2020-11-03 02:18:15 +00:00
|
|
|
repo = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2022-06-26 10:26:21 +00:00
|
|
|
sha256 = "sha256-q+6w22MbI3HRpmkybZXXWbkK7jbd6lyxodC3EpSovRI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
cargoSha256 = "sha256-uuhGb0/RDz1/3O8WYiyGIUQFh0WZWJgujqtvH+hgbdA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
doCheck = true;
|
2022-04-03 18:54:34 +00:00
|
|
|
checkFlags = [
|
|
|
|
"--skip=cli_tests::run_cwasm"
|
|
|
|
"--skip=commands::compile::test::test_aarch64_flags_compile"
|
2022-06-26 10:26:21 +00:00
|
|
|
"--skip=commands::compile::test::test_successful_compile"
|
2022-04-03 18:54:34 +00:00
|
|
|
"--skip=commands::compile::test::test_x64_flags_compile"
|
|
|
|
"--skip=commands::compile::test::test_x64_presets_compile"
|
|
|
|
"--skip=traps::parse_dwarf_info"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Standalone JIT-style runtime for WebAssembly, using Cranelift";
|
2020-10-11 12:50:04 +00:00
|
|
|
homepage = "https://github.com/bytecodealliance/wasmtime";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2022-06-26 10:26:21 +00:00
|
|
|
maintainers = with maintainers; [ ereslibre matthewbauer ];
|
2022-06-16 17:23:12 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|