diff options
author | Marco A L Barbosa <malbarbo@gmail.com> | 2021-06-18 18:49:03 -0300 |
---|---|---|
committer | Marco A L Barbosa <malbarbo@gmail.com> | 2021-06-22 08:06:31 -0300 |
commit | b23217f3b20275b2a20d44fd24ea96523ae6e879 (patch) | |
tree | 4f082a1ea0bd4f9eb02ba8f511929b3a4a76d36b /pkgs/development/interpreters/wasm3 | |
parent | 14afd6e5f98a105ba9c5ce66186564d908c56ee1 (diff) |
wasm3: init at 0.5.0
Diffstat (limited to 'pkgs/development/interpreters/wasm3')
-rw-r--r-- | pkgs/development/interpreters/wasm3/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/wasm3/default.nix b/pkgs/development/interpreters/wasm3/default.nix new file mode 100644 index 0000000000000..b16dc78ac08e0 --- /dev/null +++ b/pkgs/development/interpreters/wasm3/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, cmake, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "wasm3"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "wasm3"; + repo = "wasm3"; + rev = "v${version}"; + sha256 = "07zzmk776j8ydyxhrnnjiscbhhmz182a62r6aix6kfk5kq2cwia2"; + }; + + nativeBuildInputs = [ cmake ]; + + cmakeFlags = [ + "-DBUILD_WASI=simple" + ]; + + installPhase = '' + runHook preInstal + install -Dm755 wasm3 -t $out/bin + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://github.com/wasm3/wasm3"; + description = "The fastest WebAssembly interpreter, and the most universal runtime."; + platforms = platforms.all; + maintainers = with maintainers; [ malbarbo ]; + license = licenses.mit; + }; +} |