Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ stdenv, fetchFromGitHub, cmake, python3 }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "wabt-${version}"; | ||
version = "1.0.5"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "WebAssembly"; | ||
repo = "wabt"; | ||
rev = version; | ||
sha256 = "1cbak3ach7cna98j2r0v3y38c59ih2gv0p6f43qp782pyj07hzfy"; | ||
}; | ||
|
||
nativeBuildInputs = [ cmake ]; | ||
cmakeFlags = [ "-DBUILD_TESTS=OFF" ]; | ||
buildInputs = [ python3 ]; | ||
|
||
meta = with stdenv.lib; { | ||
description = "The WebAssembly Binary Toolkit"; | ||
longDescription = '' | ||
WABT (we pronounce it "wabbit") is a suite of tools for WebAssembly, | ||
including: | ||
* wat2wasm: translate from WebAssembly text format to the WebAssembly | ||
binary format | ||
* wasm2wat: the inverse of wat2wasm, translate from the binary format | ||
back to the text format (also known as a .wat) | ||
* wasm-objdump: print information about a wasm binary. Similiar to | ||
objdump. | ||
* wasm-interp: decode and run a WebAssembly binary file using a | ||
stack-based interpreter | ||
* wat-desugar: parse .wat text form as supported by the spec interpreter | ||
(s-expressions, flat syntax, or mixed) and print "canonical" flat | ||
format | ||
* wasm2c: convert a WebAssembly binary file to a C source and header | ||
''; | ||
homepage = https://github.com/WebAssembly/wabt; | ||
license = licenses.asl20; | ||
maintainers = with maintainers; [ ekleog ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters