nixpkgs-suyu/pkgs/development/interpreters/wasmtime/default.nix

32 lines
971 B
Nix
Raw Normal View History

{ rustPlatform, fetchFromGitHub, lib, python, cmake, llvmPackages, clang, stdenv, darwin }:
2020-01-07 17:36:29 +01:00
rustPlatform.buildRustPackage rec {
2019-06-09 11:48:14 +02:00
pname = "wasmtime";
2020-10-07 12:56:06 +02:00
version = "0.20.0";
src = fetchFromGitHub {
2019-11-25 12:04:40 +01:00
owner = "bytecodealliance";
repo = pname;
rev = "v${version}";
2020-10-07 12:56:06 +02:00
sha256 = "01k1fpk2qp4kv0xr4f0xmrjkr98j5ws48r1aks8l80mffs4ynqfr";
fetchSubmodules = true;
};
2020-10-07 12:56:06 +02:00
cargoSha256 = "0vghcs1nbxlkmw9wfikzb1ndscx7fkmgv5q8dnfcisl05zpkj7si";
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; {
2020-01-07 17:36:29 +01:00
description = "Standalone JIT-style runtime for WebAssembly, using Cranelift";
2020-10-07 12:56:06 +02:00
homepage = "https://github.com/bytecodealliance/wasmtime";
license = licenses.asl20;
maintainers = [ maintainers.matthewbauer ];
platforms = platforms.unix;
};
}