Skip to content

Commit

Permalink
wasmer: 4.4.0 -> 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao committed Oct 29, 2024
1 parent 2fcea20 commit 5a06dd9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
22 changes: 10 additions & 12 deletions pkgs/development/interpreters/wasmer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = ''
Expand All @@ -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 ];
};
}
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37875,7 +37875,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;
};

Expand Down

0 comments on commit 5a06dd9

Please sign in to comment.