1{ stdenv, cmake, python3, fetchFromGitHub, emscriptenRev ? null, substituteAll }:
6 # Map from git revs to SHA256 hashes
8 version_93 = "15y3703ha6mxcq168br0wlydas5rq66msrcsd650zrjz0ndxwsfx";
9 "1.39.1" = "0ygm9m5322h4vfpf3j63q32qxk2l26yk62hh7dkb49j51zwl1y3y";
13stdenv.mkDerivation rec {
14 version = if emscriptenRev == null
16 else "emscripten-${emscriptenRev}";
17 rev = if emscriptenRev == null
18 then "version_${version}"
22 src = fetchFromGitHub {
23 owner = "WebAssembly";
26 if builtins.hasAttr rev sha256s
27 then builtins.getAttr rev sha256s
32 patches = stdenv.lib.optional (emscriptenRev != null) (substituteAll {
33 src = ./0001-Get-rid-of-git-dependency.patch;
34 emscriptenv = "1.39.1";
37 nativeBuildInputs = [ cmake python3 ];
39 meta = with stdenv.lib; {
40 homepage = "https://github.com/WebAssembly/binaryen";
41 description = "Compiler infrastructure and toolchain library for WebAssembly, in C++";
42 platforms = platforms.all;
43 maintainers = with maintainers; [ asppsa ];
44 license = licenses.asl20;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list