88, CoreFoundation
99, SystemConfiguration
1010, Security
11- , withLLVM ? false
12- , withSinglepass ? ! ( stdenv . hostPlatform . isDarwin && stdenv . hostPlatform . isx86_64 )
11+ , withLLVM ? ! ( stdenv . hostPlatform . isDarwin && stdenv . hostPlatform . isAarch64 )
12+ , withSinglepass ? true
1313} :
1414
1515rustPlatform . buildRustPackage rec {
1616 pname = "wasmer" ;
17- version = "4.4 .0" ;
17+ version = "5.0 .0" ;
1818
1919 src = fetchFromGitHub {
2020 owner = "wasmerio" ;
2121 repo = pname ;
2222 rev = "refs/tags/v${ version } " ;
23- hash = "sha256-zKo7d7LAfdGb7hC8RK7YH4lhk7RbivS+hNZDyQyHYM8 =" ;
23+ hash = "sha256-zTz4UK+A4HWf+XGaTh7FOUFEeB9JnZooFnxZ4K3AFGw =" ;
2424 } ;
2525
26- cargoHash = "sha256-tajvVMRfBHefU0kVro830HeJSdgJEKPmEQm7X0+4+Kc =" ;
26+ cargoHash = "sha256-YSnGGd2uIxvhxDTJjtQMdv4Qx1DE7RA05Z+q4emJAKg =" ;
2727
2828 nativeBuildInputs = [
2929 rustPlatform . bindgenHook
@@ -52,12 +52,12 @@ rustPlatform.buildRustPackage rec {
5252
5353 cargoBuildFlags = [ "--manifest-path" "lib/cli/Cargo.toml" "--bin" "wasmer" ] ;
5454
55- env . LLVM_SYS_150_PREFIX = lib . optionalString withLLVM llvmPackages . llvm . dev ;
55+ env . LLVM_SYS_180_PREFIX = lib . optionalString withLLVM llvmPackages . llvm . dev ;
5656
5757 # Tests are failing due to `Cannot allocate memory` and other reasons
5858 doCheck = false ;
5959
60- meta = with lib ; {
60+ meta = {
6161 description = "Universal WebAssembly Runtime" ;
6262 mainProgram = "wasmer" ;
6363 longDescription = ''
@@ -67,10 +67,8 @@ rustPlatform.buildRustPackage rec {
6767 x86 and ARM devices.
6868 '' ;
6969 homepage = "https://wasmer.io/" ;
70- license = licenses . mit ;
71- maintainers = with maintainers ; [ Br1ght0ne shamilton nickcao ] ;
72- # error: multiple fields are never read
73- # --> lib/compiler-llvm/src/translator/intrinsics.rs:141:9
74- broken = withLLVM ;
70+ license = lib . licenses . mit ;
71+ platforms = with lib . platforms ; linux ++ darwin ;
72+ maintainers = with lib . maintainers ; [ Br1ght0ne shamilton nickcao ] ;
7573 } ;
7674}
0 commit comments