Skip to content

wasmer: 5.0.4 -> 7.1.0, add v8 support#516705

Open
kilyanni wants to merge 2 commits intoNixOS:masterfrom
kilyanni:update/wasmer
Open

wasmer: 5.0.4 -> 7.1.0, add v8 support#516705
kilyanni wants to merge 2 commits intoNixOS:masterfrom
kilyanni:update/wasmer

Conversation

@kilyanni
Copy link
Copy Markdown
Contributor

@kilyanni kilyanni commented May 5, 2026

Updates wasmer to the latest version and adds support for the v8 compiler backend

Diff: wasmerio/wasmer@refs/tags/v5.0.4...refs/tags/v7.1.0

Supersedes #433805 (stale)
Closes #405782 and #403981

cc @NickCao

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 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 This PR causes 1 package to rebuild on Linux. labels May 5, 2026
@kilyanni

This comment was marked as outdated.

@kilyanni kilyanni force-pushed the update/wasmer branch 2 times, most recently from 5c45577 to d544d73 Compare May 5, 2026 02:56
@kilyanni

This comment was marked as outdated.

@kilyanni
Copy link
Copy Markdown
Contributor Author

kilyanni commented May 5, 2026

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 516705
Commit: cf9c2dda6f76546d9cb2d785228eab0890de00b3 (subsequent changes)
Merge: 789b318c8e39b39b363f91c16813ef730dbb8c1b

Logs: https://github.com/kilyanni/nixpkgs-review-gha/actions/runs/25356507187


x86_64-linux

✅ 1 package built:
  • wasmer

aarch64-linux

✅ 1 package built:
  • wasmer

x86_64-darwin (sandbox = relaxed)

✅ 1 package built:
  • wasmer

aarch64-darwin (sandbox = relaxed)

✅ 1 package built:
  • wasmer

@kilyanni kilyanni marked this pull request as ready for review May 5, 2026 04:23
@nixpkgs-ci nixpkgs-ci Bot requested a review from NickCao May 5, 2026 05:24
Comment thread pkgs/by-name/wa/wasmer/package.nix
@kilyanni kilyanni force-pushed the update/wasmer branch 2 times, most recently from 8463ea4 to 606c8fd Compare May 5, 2026 23:03
Copy link
Copy Markdown
Member

@NickCao NickCao left a comment

Choose a reason for hiding this comment

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

Overall looking good.

Comment on lines +133 to +136
if pc="$(WASMER_DIR="" target/release/wasmer config --pkg-config 2>/dev/null)"; then
mkdir -p "$out/lib/pkgconfig"
printf '%s\n' "$pc" > "$out/lib/pkgconfig/wasmer.pc"
fi
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What's this about?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The Makefile generates pkg-config for Linux, but (for no clear reason I can discern) doesn't do so for darwin, so I manually filled that in. Not strictly necessary though I suppose

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So this is failing? What's the error?

    + lib.optionalString stdenv.hostPlatform.isDarwin ''
      substituteInPlace Makefile \
        --replace-fail 'install: install-wasmer install-capi-headers install-capi-lib install-pkgconfig install-misc' \
                       'install: install-wasmer install-capi-headers install-misc'
    '';

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah right sorry, I misremembered
Yeah it broke

The errors are in the hidden nixpkgs-review-gha comments; here the specific one:

if pc="$(target/release/wasmer config --pkg-config 2>/dev/null)"; then 
  echo "$pc" | install -Dm644 /dev/stdin "/nix/store/3z902zc06hhavxrdw8hh1lkydq9l7i0m-wasmer-7.1.0"/lib/pkgconfig/wasmer.pc; 
else 
  echo 1>&2 "WASMER_INSTALL_PREFIX was not set during build, not installing wasmer.pc"; 
fi

install: skipping file '/dev/stdin', as it was replaced while being copied

make: *** [Makefile:979: install-pkgconfig] Error 1

I have no idea why they do echo | install /dev/stdin ^^'

I don't have a darwin machine to debug with, so I fixed it a bit crudely maybe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (update) This PR updates a package to a newer version 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.

2 participants