2018-08-20 02:53:41 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "wabt-${version}";
|
2019-01-27 01:39:14 +00:00
|
|
|
version = "1.0.8";
|
2018-08-20 02:53:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WebAssembly";
|
|
|
|
repo = "wabt";
|
|
|
|
rev = version;
|
2019-01-27 01:39:14 +00:00
|
|
|
sha256 = "018sb7p8xlvv8p2fdbnl0v98zh78zc8ha74ldw5c8z0i7xzgzj9w";
|
2018-08-20 02:53:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [ "-DBUILD_TESTS=OFF" ];
|
|
|
|
buildInputs = [ python3 ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The WebAssembly Binary Toolkit";
|
|
|
|
longDescription = ''
|
2018-10-14 15:42:29 +00:00
|
|
|
WABT (pronounced "wabbit") is a suite of tools for WebAssembly, including:
|
2018-08-20 02:53:41 +00:00
|
|
|
* 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 ];
|
2018-10-22 22:31:06 +00:00
|
|
|
platforms = platforms.unix;
|
2018-08-20 02:53:41 +00:00
|
|
|
};
|
|
|
|
}
|