3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #127687 from malbarbo/wasm3

wasm3: init at 0.5.0
This commit is contained in:
Sandro 2021-06-22 15:07:36 +02:00 committed by GitHub
commit e26ee387da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -12667,6 +12667,8 @@ in
wasm = ocamlPackages.wasm;
wasm3 = callPackage ../development/interpreters/wasm3 { };
proglodyte-wasm = callPackage ../development/interpreters/proglodyte-wasm { };