2023-03-29 17:41:26 +00:00
|
|
|
{ lib
|
|
|
|
, llvmPackages
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
2023-06-09 23:05:16 +00:00
|
|
|
llvmPackages.stdenv.mkDerivation (finalAttrs: {
|
2023-03-29 17:41:26 +00:00
|
|
|
pname = "wavm";
|
|
|
|
version = "2022-05-14";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WAVM";
|
|
|
|
repo = "WAVM";
|
2023-06-09 23:05:16 +00:00
|
|
|
rev = "nightly/${finalAttrs.version}";
|
2023-03-29 17:41:26 +00:00
|
|
|
hash = "sha256-SHz+oOOkwvVZucJYFSyZc3MnOAy1VatspmZmOAXYAWA=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake llvmPackages.llvm ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "WebAssembly Virtual Machine";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "wavm";
|
2023-03-29 17:41:26 +00:00
|
|
|
homepage = "https://wavm.github.io";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ereslibre ];
|
2023-12-13 15:46:55 +00:00
|
|
|
platforms = platforms.unix;
|
2023-03-29 17:41:26 +00:00
|
|
|
};
|
2023-06-09 23:05:16 +00:00
|
|
|
})
|