nixpkgs/pkgs/development/compilers/binaryen/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
692 B
Nix
Raw Normal View History

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