1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-C8S1+wcJhfv65HY8KCSnX+F6wP1E4Vkr0iwW83OwZxk=";
12 fetchSubmodules = true;
15 nativeBuildInputs = [ cmake ];
16 cmakeFlags = [ "-DBUILD_TESTS=OFF" "-DCMAKE_PROJECT_VERSION=${version}" ];
19 description = "The WebAssembly Binary Toolkit";
21 WABT (pronounced "wabbit") is a suite of tools for WebAssembly, including:
22 * wat2wasm: translate from WebAssembly text format to the WebAssembly
24 * wasm2wat: the inverse of wat2wasm, translate from the binary format
25 back to the text format (also known as a .wat)
26 * wasm-objdump: print information about a wasm binary. Similiar to
28 * wasm-interp: decode and run a WebAssembly binary file using a
29 stack-based interpreter
30 * wat-desugar: parse .wat text form as supported by the spec interpreter
31 (s-expressions, flat syntax, or mixed) and print "canonical" flat
33 * wasm2c: convert a WebAssembly binary file to a C source and header
35 homepage = "https://github.com/WebAssembly/wabt";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ ekleog ];
38 platforms = platforms.unix;