nixpkgs/pkgs/development/compilers/binaryen/default.nix
2022-06-22 20:06:34 -04:00

29 lines
720 B
Nix

{ lib, stdenv, cmake, python3, fetchFromGitHub, emscripten }:
stdenv.mkDerivation rec {
pname = "binaryen";
version = "108";
src = fetchFromGitHub {
owner = "WebAssembly";
repo = "binaryen";
rev = "version_${version}";
sha256 = "sha256-CcGxPBdUiNLfMjjJKFMdDvaIrHvf2M/gCub4JBw4+8c=";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake python3 ];
meta = with lib; {
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;
};
passthru.tests = {
inherit emscripten;
};
}