diff options
author | Léo Gaspard <leo@gaspard.io> | 2018-08-20 11:53:41 +0900 |
---|---|---|
committer | Ryan Mulligan <ryan@ryantm.com> | 2018-08-23 21:28:54 -0700 |
commit | 1bc48e63fd5bbf15aaef1813f31c1d237ae200f3 (patch) | |
tree | 5e77601895fa4d2ef9ddb2ef5c9c64478ed10afb /pkgs | |
parent | 70636aa3979c342c44d1fd43da000308c0dc5bc0 (diff) | |
download | nixlib-1bc48e63fd5bbf15aaef1813f31c1d237ae200f3.tar nixlib-1bc48e63fd5bbf15aaef1813f31c1d237ae200f3.tar.gz nixlib-1bc48e63fd5bbf15aaef1813f31c1d237ae200f3.tar.bz2 nixlib-1bc48e63fd5bbf15aaef1813f31c1d237ae200f3.tar.lz nixlib-1bc48e63fd5bbf15aaef1813f31c1d237ae200f3.tar.xz nixlib-1bc48e63fd5bbf15aaef1813f31c1d237ae200f3.tar.zst nixlib-1bc48e63fd5bbf15aaef1813f31c1d237ae200f3.zip |
wabt: init at 1.0.5
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/wabt/default.nix | 41 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/tools/wabt/default.nix b/pkgs/development/tools/wabt/default.nix new file mode 100644 index 000000000000..26347d4b2782 --- /dev/null +++ b/pkgs/development/tools/wabt/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index de141ef6a76e..34d5ae13dc77 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7410,6 +7410,8 @@ with pkgs; love_11 = callPackage ../development/interpreters/love/11.1.nix { }; love = love_0_10; + wabt = callPackage ../development/tools/wabt { }; + ### LUA MODULES lua4 = callPackage ../development/interpreters/lua-4 { }; |