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-08-12 12:06:08 +00:00
|
|
|
version = "0.39.1";
|
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-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-cU03wm1+V++mV7j7VyMtjAYrPldzTysNzpJ8m0q4Rx8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cargoSha256 = "sha256-DnThste0SbBdpGAUYhmwbdQFNEB3LozyDf0X8r2A90Q=";
|
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"
|
2022-08-12 12:06:08 +00:00
|
|
|
"--skip=commands::compile::test::test_unsupported_flags_compile"
|
2022-04-03 18:54:34 +00:00
|
|
|
"--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
|
|
|
};
|
|
|
|
}
|