summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/binaryen
diff options
context:
space:
mode:
authorGabriel Ebner <gebner@gebner.org>2020-08-29 11:27:35 +0200
committerGabriel Ebner <gebner@gebner.org>2020-08-29 11:27:35 +0200
commit93fda1f69d21e6120337d226e1e8e45764d73fa1 (patch)
tree5fffbfd216db73447a4b85c2e2f2d5cef00a652b /pkgs/development/compilers/binaryen
parent48dc384a3cc28fdd8ef133df9b11ca1bd814e62e (diff)
binaryen: 95 -> 96
Diffstat (limited to 'pkgs/development/compilers/binaryen')
-rw-r--r--pkgs/development/compilers/binaryen/default.nix18
1 files changed, 15 insertions, 3 deletions
diff --git a/pkgs/development/compilers/binaryen/default.nix b/pkgs/development/compilers/binaryen/default.nix
index d0e224b7c9b4..6de4e0fb3047 100644
--- a/pkgs/development/compilers/binaryen/default.nix
+++ b/pkgs/development/compilers/binaryen/default.nix
@@ -1,16 +1,24 @@
-{ stdenv, cmake, python3, fetchFromGitHub }:
+{ stdenv, cmake, python3, fetchFromGitHub, fetchpatch, emscripten }:
stdenv.mkDerivation rec {
pname = "binaryen";
- version = "95";
+ version = "96";
src = fetchFromGitHub {
owner = "WebAssembly";
repo = "binaryen";
rev = "version_${version}";
- sha256 = "1w4js9bm5qv5aws8bzz4f0n3ni2l7h4fidkq9v5bldf0zxncy8m3";
+ sha256 = "1mqpb6yy87aifpbcy0lczi3bp6kddrwi6d0g6lrhjrdxx2kvbdag";
};
+ patches = [
+ # Adds --minimize-wasm-changes option required by emscripten 2.0.1
+ (fetchpatch {
+ url = "https://patch-diff.githubusercontent.com/raw/WebAssembly/binaryen/pull/3044.patch";
+ sha256 = "1hdbc9h9zhh2d3bl4sqv6v9psfmny715612bwpjdln0ibdvc129s";
+ })
+ ];
+
nativeBuildInputs = [ cmake python3 ];
meta = with stdenv.lib; {
@@ -20,4 +28,8 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ asppsa ];
license = licenses.asl20;
};
+
+ passthru.tests = {
+ inherit emscripten;
+ };
}