nixpkgs/pkgs/development/tools/wabt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.4 KiB
Nix
Raw Normal View History

2021-03-25 22:21:16 +03:00
{ lib, stdenv, fetchFromGitHub, cmake }:
2018-08-20 05:53:41 +03:00
stdenv.mkDerivation rec {
pname = "wabt";
2023-10-26 10:29:25 +03:00
version = "1.0.34";
2018-08-20 05:53:41 +03:00
src = fetchFromGitHub {
owner = "WebAssembly";
repo = "wabt";
rev = version;
2023-10-26 10:29:25 +03:00
sha256 = "sha256-KlaMc3k1y6KviMDrMbKPcJOywJasrPZrnvSos8hgu+8=";
fetchSubmodules = true;
2018-08-20 05:53:41 +03:00
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DBUILD_TESTS=OFF" "-DCMAKE_PROJECT_VERSION=${version}" ];
2018-08-20 05:53:41 +03:00
meta = with lib; {
2018-08-20 05:53:41 +03:00
description = "The WebAssembly Binary Toolkit";
longDescription = ''
2018-10-14 18:42:29 +03:00
WABT (pronounced "wabbit") is a suite of tools for WebAssembly, including:
2018-08-20 05:53:41 +03: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";
2018-08-20 05:53:41 +03:00
license = licenses.asl20;
maintainers = with maintainers; [ ekleog ];
2018-10-23 01:31:06 +03:00
platforms = platforms.unix;
2018-08-20 05:53:41 +03:00
};
}