wasmer: 4.4.0 -> 5.0.0 (#352227)

This commit is contained in:
Nick Cao 2024-11-01 11:53:50 -04:00 committed by GitHub
commit 4cec51499e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 13 deletions

View File

@ -8,22 +8,22 @@
, CoreFoundation
, SystemConfiguration
, Security
, withLLVM ? false
, withSinglepass ? !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64)
, withLLVM ? !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)
, withSinglepass ? true
}:
rustPlatform.buildRustPackage rec {
pname = "wasmer";
version = "4.4.0";
version = "5.0.0";
src = fetchFromGitHub {
owner = "wasmerio";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-zKo7d7LAfdGb7hC8RK7YH4lhk7RbivS+hNZDyQyHYM8=";
hash = "sha256-zTz4UK+A4HWf+XGaTh7FOUFEeB9JnZooFnxZ4K3AFGw=";
};
cargoHash = "sha256-tajvVMRfBHefU0kVro830HeJSdgJEKPmEQm7X0+4+Kc=";
cargoHash = "sha256-YSnGGd2uIxvhxDTJjtQMdv4Qx1DE7RA05Z+q4emJAKg=";
nativeBuildInputs = [
rustPlatform.bindgenHook
@ -52,12 +52,12 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = [ "--manifest-path" "lib/cli/Cargo.toml" "--bin" "wasmer" ];
env.LLVM_SYS_150_PREFIX = lib.optionalString withLLVM llvmPackages.llvm.dev;
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 = with lib; {
meta = {
description = "Universal WebAssembly Runtime";
mainProgram = "wasmer";
longDescription = ''
@ -67,10 +67,8 @@ rustPlatform.buildRustPackage rec {
x86 and ARM devices.
'';
homepage = "https://wasmer.io/";
license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne shamilton nickcao ];
# error: multiple fields are never read
# --> lib/compiler-llvm/src/translator/intrinsics.rs:141:9
broken = withLLVM;
license = lib.licenses.mit;
platforms = with lib.platforms; linux ++ darwin;
maintainers = with lib.maintainers; [ Br1ght0ne shamilton nickcao ];
};
}

View File

@ -37885,7 +37885,7 @@ with pkgs;
wamr = darwin.apple_sdk_11_0.callPackage ../development/interpreters/wamr { };
wasmer = callPackage ../development/interpreters/wasmer {
llvmPackages = llvmPackages_15;
llvmPackages = llvmPackages_18;
inherit (darwin.apple_sdk.frameworks) CoreFoundation SystemConfiguration Security;
};