4fc29cb41f
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
31 lines
972 B
Nix
31 lines
972 B
Nix
{ rustPlatform, fetchFromGitHub, lib, python, cmake, llvmPackages, clang, stdenv, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wasmtime";
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bytecodealliance";
|
|
repo = "${pname}";
|
|
rev = "v${version}";
|
|
sha256 = "1zlljqkkcw8h94ff1w47sqn9pn0zal06s06i8nciv5i2d1xaqg5n";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
cargoSha256 = "1hb7l7a76lgbji0qm9qd80m35cp346hyi4rphfk6p80v142cw8hh";
|
|
|
|
nativeBuildInputs = [ python cmake clang ];
|
|
buildInputs = [ llvmPackages.libclang ] ++
|
|
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
|
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Standalone JIT-style runtime for WebAssembly, using Cranelift";
|
|
homepage = "https://github.com/CraneStation/wasmtime";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.matthewbauer ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|