12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
20 hash = "sha256-rP0qvSb9PxsTMAq0hpB+zdSTHvridyCVdukLUYxdao8=";
23 cargoHash = "sha256-6UwFfTHhAr56K7kDAp0dCSoCjZuCHdgw2bpOD1WdvYU=";
26 rustPlatform.bindgenHook
29 buildInputs = lib.optionals withLLVM [
35 # check references to `compiler_features` in Makefile on update
39 "wasmer-artifact-create"
40 "static-artifact-create"
41 "wasmer-artifact-load"
42 "static-artifact-load"
44 ++ lib.optional withLLVM "llvm"
45 ++ lib.optional withSinglepass "singlepass";
54 env.LLVM_SYS_180_PREFIX = lib.optionalString withLLVM llvmPackages.llvm.dev;
56 # Tests are failing due to `Cannot allocate memory` and other reasons
60 description = "Universal WebAssembly Runtime";
61 mainProgram = "wasmer";
63 Wasmer is a standalone WebAssembly runtime for running WebAssembly outside
64 of the browser, supporting WASI and Emscripten. Wasmer can be used
65 standalone (via the CLI) and embedded in different languages, running in
68 homepage = "https://wasmer.io/";
69 license = lib.licenses.mit;
70 platforms = with lib.platforms; linux ++ darwin;
71 maintainers = with lib.maintainers; [