2021-07-24 12:14:16 +00:00
|
|
|
{ lib, stdenv, cmake, python3, fetchFromGitHub, emscripten }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "binaryen";
|
2021-07-24 12:14:16 +00:00
|
|
|
version = "99";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WebAssembly";
|
|
|
|
repo = "binaryen";
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "version_${version}";
|
2021-07-24 12:14:16 +00:00
|
|
|
sha256 = "1a6ixxm1f8mrr9mn6a0pimajdzsdr4w1qhr92skxq67168vvc1ic";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/WebAssembly/binaryen";
|
|
|
|
description = "Compiler infrastructure and toolchain library for WebAssembly, in C++";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ asppsa ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit emscripten;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|