3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/interpreters/wasmtime/default.nix

32 lines
975 B
Nix
Raw Normal View History

{ rustPlatform, fetchFromGitHub, lib, python, cmake, llvmPackages, clang, stdenv, darwin }:
2020-01-07 16:36:29 +00:00
rustPlatform.buildRustPackage rec {
2019-06-09 10:48:14 +01:00
pname = "wasmtime";
2020-11-10 19:30:51 +00:00
version = "0.21.0";
src = fetchFromGitHub {
2019-11-25 11:04:40 +00:00
owner = "bytecodealliance";
repo = pname;
rev = "v${version}";
2020-11-10 19:30:51 +00:00
sha256 = "0q7wsnq5zdskxwzsxwm98jfnv2frnwca1dkhwndcn9yyz2gyw57m";
fetchSubmodules = true;
};
cargoSha256 = "1wlig9gls7s1k1swxwhl82vfga30bady8286livxc4y2zp0vb18w";
nativeBuildInputs = [ python cmake clang ];
buildInputs = [ llvmPackages.libclang ] ++
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
doCheck = true;
meta = with lib; {
2020-01-07 16:36:29 +00:00
description = "Standalone JIT-style runtime for WebAssembly, using Cranelift";
2020-10-07 11:56:06 +01:00
homepage = "https://github.com/bytecodealliance/wasmtime";
license = licenses.asl20;
maintainers = [ maintainers.matthewbauer ];
platforms = platforms.unix;
};
}