Move kraken,scheme,python,cpp fib tests over to koka_bench, add WAVM as a tested compiler backend for the Kraken benchmarks
This commit is contained in:
36
flake.nix
36
flake.nix
@@ -19,6 +19,40 @@
|
||||
inherit system;
|
||||
overlays = [ moz_overlay.overlay ];
|
||||
};
|
||||
wavm = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "wavm";
|
||||
version = "0.0.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/WAVM/WAVM/releases/download/nightly%2F2022-05-14/wavm-0.0.0-prerelease-linux.tar.gz";
|
||||
sha256 = "sha256-+PpnwPJDty6XCjjuHVFwiHc1q+k0zPF11EbRpqSKfyY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgs.autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pkgs.stdenv.cc.cc.lib
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -r bin/wavm $out/bin/
|
||||
cp -r include/ $out
|
||||
cp -r lib64/ $out
|
||||
cp -r share/ $out
|
||||
#install -m755 -D studio-link-standalone-v${version} $out/bin/studio-link
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
homepage = "https://wavm.github.io/";
|
||||
description = "WAVM WebAssembly Engine";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
in {
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
@@ -35,6 +69,8 @@
|
||||
clang
|
||||
kakoune
|
||||
|
||||
wavm
|
||||
|
||||
hyperfine graph-cli
|
||||
(rust-bin.stable.latest.default.override {
|
||||
targets = [ "wasm32-wasi" ];
|
||||
|
||||
Reference in New Issue
Block a user