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

35 lines
1.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";
2020-01-07 16:36:29 +00:00
version = "v0.8.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 = "0az893srw49szvs5461bd165ffla4cc98gh42p3dwskwfkhpqjm4";
fetchSubmodules = true;
};
# Delete this on next update; see #79975 for details
legacyCargoFetcher = true;
2020-01-07 16:36:29 +00:00
cargoSha256 = "08b3rbnl7qwyfbwaqcb7z84sh0h94v18v6557hrf0dlil414v54i";
cargoPatches = [ ./cargo-lock.patch ];
nativeBuildInputs = [ python cmake clang ];
buildInputs = [ llvmPackages.libclang ] ++
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
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;
};
}