1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/interpreters/wasmtime/default.nix

32 lines
1 KiB
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";
version = "v0.12.0";
src = fetchFromGitHub {
2019-11-25 11:04:40 +00:00
owner = "bytecodealliance";
2020-01-07 16:36:29 +00:00
repo = "${pname}";
rev = "${version}";
sha256 = "08dhk5s8rv41mjqbwfqwqmp6p6p9y7qc5yc76ljjd9l7j1phl7mr";
fetchSubmodules = true;
};
cargoSha256 = "0wqd2yy6ih1rcz1fq7x3aiqq1ma2nmif1w8r8x0vpxjxk395zil9";
nativeBuildInputs = [ python cmake clang ];
buildInputs = [ llvmPackages.libclang ] ++
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
doCheck = false; # https://github.com/bytecodealliance/wasmtime/issues/1197
meta = with lib; {
2020-01-07 16:36:29 +00:00
description = "Standalone JIT-style runtime for WebAssembly, using Cranelift";
homepage = https://github.com/CraneStation/wasmtime;
license = licenses.asl20;
maintainers = [ maintainers.matthewbauer ];
platforms = platforms.unix;
};
}