-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
wasmer: 5.0.4 → 6.0.0 #405782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
wasmer: 5.0.4 → 6.0.0 #405782
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,26 +5,32 @@ | |
| llvmPackages, | ||
| libffi, | ||
| libxml2, | ||
| makeWrapper, | ||
| bash, | ||
| make, | ||
| withLLVM ? true, | ||
| withSinglepass ? true, | ||
| }: | ||
|
|
||
| rustPlatform.buildRustPackage rec { | ||
| pname = "wasmer"; | ||
| version = "5.0.4"; | ||
| version = "6.0.0"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "wasmerio"; | ||
| repo = pname; | ||
| tag = "v${version}"; | ||
| hash = "sha256-rP0qvSb9PxsTMAq0hpB+zdSTHvridyCVdukLUYxdao8="; | ||
| hash = "sha256-Qx5bHCzdh3RqB5r93sa01mPyxN2EQWPWcIXJs1MrUHs="; | ||
| }; | ||
|
|
||
| useFetchCargoVendor = true; | ||
| cargoHash = "sha256-Fympp2A04viibo4U79FiBSJIeGDUWS34OOwebCks6S0="; | ||
| cargoHash = "sha256-/Kcd9vZu5QstIEjDYaJ/ddXUIXL1F8Omi+Bm4jtOKcg="; | ||
|
|
||
| nativeBuildInputs = [ | ||
| rustPlatform.bindgenHook | ||
| makeWrapper | ||
| bash | ||
| make | ||
| ]; | ||
|
|
||
| buildInputs = lib.optionals withLLVM [ | ||
|
|
@@ -57,6 +63,22 @@ rustPlatform.buildRustPackage rec { | |
| # Tests are failing due to `Cannot allocate memory` and other reasons | ||
| doCheck = false; | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For me, the build fails because cargo-auditable currently passes the enabled features to all crates in the workspace, which breaks the c-api for some reason (see rust-secure-code/cargo-auditable#124). For reference, here is the error I am getting: The easiest fix is to add |
||
| postBuild = '' | ||
| # Prepare and build the Wasmer C-API | ||
| sed -i 's|SHELL=/usr/bin/env bash|SHELL=${bash}/bin/bash|' Makefile | ||
| make build-capi | ||
| make package-capi | ||
| ''; | ||
|
|
||
| postInstall = '' | ||
| # Install the C-API headers, libs, etc. | ||
| cp -r package/* $out/ | ||
|
|
||
| # Ensure the CLI can locate its assets | ||
| makeWrapper "$out/bin/wasmer" \ | ||
| --set WASMER_DIR "$out" | ||
| ''; | ||
|
Comment on lines
+66
to
+80
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Consider a separate package for the c-abi and add that as an optional dependency to wasmer. |
||
|
|
||
| meta = { | ||
| description = "Universal WebAssembly Runtime"; | ||
| mainProgram = "wasmer"; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16751,6 +16751,7 @@ with pkgs; | |
|
|
||
| wasmer = callPackage ../development/interpreters/wasmer { | ||
| llvmPackages = llvmPackages_18; | ||
| make = pkgs.make; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no |
||
| }; | ||
|
|
||
| wavm = callPackage ../development/interpreters/wavm { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6.0.1has been released; consider updating directly to that version