mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
d89ae377d4
The issue https://github.com/bytecodealliance/wasmtime/issues/1556 appears to be fixed.
32 lines
972 B
Nix
32 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;
|
|
};
|
|
}
|