942edf52a0
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/binaryen/versions. These checks were done: - built on NixOS - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-shell -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-shell --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-opt -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-opt --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-merge -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-merge --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-metadce -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-metadce --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/asm2wasm -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/asm2wasm --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm2asm -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm2asm --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/s2wasm -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/s2wasm --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-emscripten-finalize -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-emscripten-finalize --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-as -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-as --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-dis -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-dis --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-ctor-eval -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-ctor-eval --help` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-reduce -h` got 0 exit code - ran `/nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45/bin/wasm-reduce --help` got 0 exit code - found 45 with grep in /nix/store/vqjm60x3syaf55njww7a4g4dq7r0x6qy-binaryen-45 - directory tree listing: https://gist.github.com/d46c9206b6d0b68c0f9dcc3bf83b6540
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ stdenv, cmake, fetchFromGitHub, emscriptenRev ? null }:
|
|
|
|
let
|
|
defaultVersion = "45";
|
|
|
|
# Map from git revs to SHA256 hashes
|
|
sha256s = {
|
|
"version_45" = "1wgzfzjjzkiaz0rf2lnwrcvlcsjvjhyvbyh58jxhqq43vi34zyjc";
|
|
"1.37.36" = "1wgzfzjjzkiaz0rf2lnwrcvlcsjvjhyvbyh58jxhqq43vi34zyjc";
|
|
};
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = if emscriptenRev == null
|
|
then defaultVersion
|
|
else "emscripten-${emscriptenRev}";
|
|
rev = if emscriptenRev == null
|
|
then "version_${version}"
|
|
else emscriptenRev;
|
|
name = "binaryen-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "WebAssembly";
|
|
repo = "binaryen";
|
|
sha256 =
|
|
if builtins.hasAttr rev sha256s
|
|
then builtins.getAttr rev sha256s
|
|
else null;
|
|
inherit rev;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
meta = with stdenv.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;
|
|
};
|
|
}
|