Skip to content

wasmer: 5.0.4 → 6.0.0#405782

Open
SumitKumar-17 wants to merge 1 commit intoNixOS:masterfrom
SumitKumar-17:wasmer-6.0.0
Open

wasmer: 5.0.4 → 6.0.0#405782
SumitKumar-17 wants to merge 1 commit intoNixOS:masterfrom
SumitKumar-17:wasmer-6.0.0

Conversation

@SumitKumar-17
Copy link
Copy Markdown
Contributor

@SumitKumar-17 SumitKumar-17 commented May 10, 2025

Resolves #403981

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 10, 2025
@patka-123
Copy link
Copy Markdown
Contributor

What about the following part from the update request?

Please, do not only update the package but also include the "library" for it ...

@SumitKumar-17
Copy link
Copy Markdown
Contributor Author

SumitKumar-17 commented May 10, 2025

What about the following part from the update request?

Please, do not only update the package but also include the "library" for it ...

Ya,just a min

Hey @patka-123 do you know abou the pacage name failing here?

Copy link
Copy Markdown
Contributor

@zebreus zebreus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch, @SumitKumar-17, please find below a few suggestions for improvement.


wasmer = callPackage ../development/interpreters/wasmer {
llvmPackages = llvmPackages_18;
make = pkgs.make;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no pkgs.make. Maybe you meant gnumake

rustPlatform.buildRustPackage rec {
pname = "wasmer";
version = "5.0.4";
version = "6.0.0";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6.0.1 has been released; consider updating directly to that version

@@ -57,6 +63,22 @@ rustPlatform.buildRustPackage rec {
# Tests are failing due to `Cannot allocate memory` and other reasons
doCheck = false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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:

> cargo metadata failure: error: Package `wasmer-c-api v6.0.1 (/build/source/lib/c-api)` does
  not have feature `wasmer-compiler-cranelift`. It has an optional dependency with that
  name, but that dependency uses the "dep:" syntax in the features table, so it does not
  have an implicit feature with that name.
> Dependency `wasmer-compiler-cranelift` would be enabled by these features:
>        - `cranelift`

The easiest fix is to add auditable = false; here, which is what a few other packages like wasmtime and wasm-tools already do.

Comment on lines +66 to +80
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"
'';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make build-capi calls cargo again and builds most of the things we built before again. The final package will also include a lot of duplicate code, as the wasmer executable does not use the wasmer C-API.

Consider a separate package for the c-abi and add that as an optional dependency to wasmer.

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 28, 2025
@NickCao NickCao mentioned this pull request Aug 14, 2025
13 tasks
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Request: wasmer 5.0.4 → 6.0.0

4 participants