14 testsuite = fetchFromGitHub {
15 owner = "WebAssembly";
17 rev = "e05365077e13a1d86ffe77acfb1a835b7aa78422";
18 hash = "sha256-yvZ5AZTPUA6nsD3xpFC0VLthiu2CxVto66RTXBXXeJM=";
21 stdenv.mkDerivation rec {
25 src = fetchFromGitHub {
26 owner = "WebAssembly";
28 rev = "version_${version}";
29 hash = "sha256-gdqjsAQp4NTHROAf6i44GjkbtNyLPQZ153k3veK7eYs=";
38 if [ $doCheck -eq 1 ]; then
39 sed -i '/googletest/d' third_party/CMakeLists.txt
40 rmdir test/spec/testsuite
41 ln -s ${testsuite} test/spec/testsuite
43 cmakeFlagsArray=($cmakeFlagsArray -DBUILD_TESTS=0)
54 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib python3 ../check.py $tests
72 # "binaryenjs" "binaryenjs_wasm" # not building this
76 doCheck = stdenv.isLinux;
79 homepage = "https://github.com/WebAssembly/binaryen";
80 description = "Compiler infrastructure and toolchain library for WebAssembly, in C++";
81 platforms = platforms.all;
82 maintainers = with maintainers; [
86 license = licenses.asl20;