at 22.05-pre 692 B view raw
1{ lib, stdenv, cmake, python3, fetchFromGitHub, emscripten }: 2 3stdenv.mkDerivation rec { 4 pname = "binaryen"; 5 version = "102"; 6 7 src = fetchFromGitHub { 8 owner = "WebAssembly"; 9 repo = "binaryen"; 10 rev = "version_${version}"; 11 sha256 = "sha256-UlktpY9tyjYNkmiBZM42QGg67kcPo7VDy2B4Ty1YIew="; 12 }; 13 14 nativeBuildInputs = [ cmake python3 ]; 15 16 meta = with lib; { 17 homepage = "https://github.com/WebAssembly/binaryen"; 18 description = "Compiler infrastructure and toolchain library for WebAssembly, in C++"; 19 platforms = platforms.all; 20 maintainers = with maintainers; [ asppsa ]; 21 license = licenses.asl20; 22 }; 23 24 passthru.tests = { 25 inherit emscripten; 26 }; 27}