2022-05-23 06:39:29 +00:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib }:
|
2019-04-16 02:22:16 +00:00
|
|
|
|
2020-01-07 16:36:29 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-06-09 09:48:14 +00:00
|
|
|
pname = "wasmtime";
|
2022-08-05 16:48:57 +00:00
|
|
|
version = "0.39.1";
|
2019-04-16 02:22:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-11-25 11:04:40 +00:00
|
|
|
owner = "bytecodealliance";
|
2020-11-01 22:39:49 +00:00
|
|
|
repo = pname;
|
2020-04-14 17:49:12 +00:00
|
|
|
rev = "v${version}";
|
2022-08-05 16:48:57 +00:00
|
|
|
sha256 = "sha256-cU03wm1+V++mV7j7VyMtjAYrPldzTysNzpJ8m0q4Rx8=";
|
2019-04-16 02:22:16 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2022-08-05 16:48:57 +00:00
|
|
|
cargoSha256 = "sha256-DnThste0SbBdpGAUYhmwbdQFNEB3LozyDf0X8r2A90Q=";
|
2019-04-16 02:22:16 +00:00
|
|
|
|
2020-05-16 02:56:26 +00:00
|
|
|
doCheck = true;
|
2022-03-31 16:42:34 +00:00
|
|
|
checkFlags = [
|
|
|
|
"--skip=cli_tests::run_cwasm"
|
2022-08-05 16:48:57 +00:00
|
|
|
"--skip=commands::compile::test::test_unsupported_flags_compile"
|
2022-03-31 16:42:34 +00:00
|
|
|
"--skip=commands::compile::test::test_aarch64_flags_compile"
|
2022-05-23 06:39:29 +00:00
|
|
|
"--skip=commands::compile::test::test_successful_compile"
|
2022-03-31 16:42: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-02-29 11:58:22 +00:00
|
|
|
|
2019-04-16 02:22:16 +00:00
|
|
|
meta = with lib; {
|
2020-01-07 16:36:29 +00:00
|
|
|
description = "Standalone JIT-style runtime for WebAssembly, using Cranelift";
|
2020-10-07 10:56:06 +00:00
|
|
|
homepage = "https://github.com/bytecodealliance/wasmtime";
|
2019-04-16 02:22:16 +00:00
|
|
|
license = licenses.asl20;
|
2022-05-23 06:39:29 +00:00
|
|
|
maintainers = with maintainers; [ ereslibre matthewbauer ];
|
2022-04-03 20:15:42 +00:00
|
|
|
platforms = platforms.unix;
|
2019-04-16 02:22:16 +00:00
|
|
|
};
|
|
|
|
}
|