this post was submitted on 14 Jun 2024
18 points (100.0% liked)
Nix / NixOS
2572 readers
20 users here now
Main links
Videos
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
nixpkgs already has infrastructure to compile to wasi the same way you compile to other platforms like arm, darwin (macOS), musl, etc.
nix-build -A pkgsCross.wasi32.$pkgi haven't found any
$pkgthere that actually builds though.coreutilsdepends on posix stuff,busyboxtries to include a non-existentnetdb.hfile. evenhellobarfs inside i think some autotools-generated wrapper aroundfcntl.i don't understand enough about wasm to know if it really is reasonable to think of it as a "system" the same was
x86_64-linuxoraarch64-multiplatformis a "system", but if so i'd love the equivalent of this blog post showing how to use (or fix) the wasi32 system!