1,006 B
1,006 B
wasi-sdk-nixos
WASM LLVM toolchain and WASI sysroot.
Similar to WebAssembly/wasi-sdk, but re-implemented for NixOS.
Goals
- Lean C/C++ toolchain leveraging as much as possible from upstream sources.
- Basic levels of WASI (no threading, no exceptions).
Versioning
Provided are the upstream versions that WebAssembly/wasi-sdk used mid 2024:
- LLVM: 17
- wasi-libc: 21
Future releases may upgrade these upstream versions.
Usage
The default package contains all required dependencies in the following package subdirectories:
bin: compilers (clang,clang++) and linker (wasm-ld)include: libc headersinclude/c++/v1: libcxx headerslib: all libc and libcxx static librarieslib/wasi: compiler-rt builtins static libraryshare/wasi-sysroot: the WASI sysroot
For concrete usage examples, see michaelfranzl/clang-wasm-browser-starterpack.