2021-07-20 09:45:04 +02:00
|
|
|
{ lib, stdenv, cmake, python3, fetchFromGitHub, emscripten }:
|
2017-06-04 05:49:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "binaryen";
|
2021-10-29 05:20:50 +02:00
|
|
|
version = "102";
|
2017-06-04 05:49:46 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WebAssembly";
|
|
|
|
repo = "binaryen";
|
2020-08-28 20:46:26 +02:00
|
|
|
rev = "version_${version}";
|
2021-10-29 05:20:50 +02:00
|
|
|
sha256 = "sha256-UlktpY9tyjYNkmiBZM42QGg67kcPo7VDy2B4Ty1YIew=";
|
2017-06-04 05:49:46 +02:00
|
|
|
};
|
|
|
|
|
2020-03-14 02:00:27 +01:00
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
2017-06-04 05:49:46 +02:00
|
|
|
|
2021-01-22 12:25:31 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/WebAssembly/binaryen";
|
2017-06-04 05:49:46 +02:00
|
|
|
description = "Compiler infrastructure and toolchain library for WebAssembly, in C++";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ asppsa ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
2020-08-29 11:27:35 +02:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit emscripten;
|
|
|
|
};
|
2017-06-04 05:49:46 +02:00
|
|
|
}
|