Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 76 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677{ lib, rustPlatform, fetchFromGitHub, llvmPackages, libffi, libxml2, withLLVM ? true, withSinglepass ? true,}:
rustPlatform.buildRustPackage rec { pname = "wasmer"; version = "5.0.4";
src = fetchFromGitHub { owner = "wasmerio"; repo = pname; tag = "v${version}"; hash = "sha256-rP0qvSb9PxsTMAq0hpB+zdSTHvridyCVdukLUYxdao8="; };
cargoHash = "sha256-Fympp2A04viibo4U79FiBSJIeGDUWS34OOwebCks6S0=";
nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = lib.optionals withLLVM [ llvmPackages.llvm libffi libxml2 ];
# check references to `compiler_features` in Makefile on update buildFeatures = [ "cranelift" "wasmer-artifact-create" "static-artifact-create" "wasmer-artifact-load" "static-artifact-load" ] ++ lib.optional withLLVM "llvm" ++ lib.optional withSinglepass "singlepass";
cargoBuildFlags = [ "--manifest-path" "lib/cli/Cargo.toml" "--bin" "wasmer" ];
env.LLVM_SYS_180_PREFIX = lib.optionalString withLLVM llvmPackages.llvm.dev;
# Tests are failing due to `Cannot allocate memory` and other reasons doCheck = false;
meta = { description = "Universal WebAssembly Runtime"; mainProgram = "wasmer"; longDescription = '' Wasmer is a standalone WebAssembly runtime for running WebAssembly outside of the browser, supporting WASI and Emscripten. Wasmer can be used standalone (via the CLI) and embedded in different languages, running in x86 and ARM devices. ''; homepage = "https://wasmer.io/"; license = lib.licenses.mit; platforms = with lib.platforms; linux ++ darwin; maintainers = with lib.maintainers; [ Br1ght0ne shamilton nickcao ]; };}