2019-04-16 02:22:16 +00:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib, python, cmake, llvmPackages, clang }:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
rustPlatform.buildRustPackage {
|
2019-06-09 09:48:14 +00:00
|
|
|
pname = "wasmtime";
|
|
|
|
version = "20190521";
|
2019-04-16 02:22:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CraneStation";
|
|
|
|
repo = "wasmtime";
|
2019-06-09 09:48:14 +00:00
|
|
|
rev = "e530a582afe6a2b5735fd7cdf5e2e88391e58669";
|
|
|
|
sha256 = "13lqf9dp1cnw7ms7hcgirmlfkr0v7nrn3p5g7yacfasrqgnwsyl8";
|
2019-04-16 02:22:16 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2019-06-09 09:48:14 +00:00
|
|
|
cargoSha256 = "1jbpq09czm295316gdv3y0pfapqs0ynj3qbarwlnrv7valq5ak13";
|
2019-04-16 02:22:16 +00:00
|
|
|
|
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python cmake clang ];
|
|
|
|
buildInputs = [ llvmPackages.libclang ];
|
|
|
|
|
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Standalone JIT-style runtime for WebAsssembly, using Cranelift";
|
|
|
|
homepage = https://github.com/CraneStation/wasmtime;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.matthewbauer ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|