From 0956fc22d8d732dd589a819b825e61c691e78a5d Mon Sep 17 00:00:00 2001 From: Will Cohen Date: Fri, 24 Jun 2022 11:05:38 -0400 Subject: [PATCH] binaryen: backport patch for wasm2js --- pkgs/development/compilers/binaryen/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/binaryen/default.nix b/pkgs/development/compilers/binaryen/default.nix index e526fd46546..6aeaeac8a1e 100644 --- a/pkgs/development/compilers/binaryen/default.nix +++ b/pkgs/development/compilers/binaryen/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, cmake, python3, fetchFromGitHub, emscripten, - gtest, lit, nodejs, filecheck + gtest, lit, nodejs, filecheck, fetchpatch }: stdenv.mkDerivation rec { @@ -13,6 +13,14 @@ stdenv.mkDerivation rec { sha256 = "sha256-HMPoiuTvYhTDaBUfSOfh/Dt4FdO9jGqUaFpi92pnscI="; }; + patches = [ + # https://github.com/WebAssembly/binaryen/pull/4321 + (fetchpatch { + url = "https://github.com/WebAssembly/binaryen/commit/93b8849d9f98ef7ed812938ff0b3219819c2be77.patch"; + sha256 = "sha256-Duan/B9A+occ5Lj2SbRX793xIfhzHbdYPI5PyTNCZoU="; + }) + ]; + nativeBuildInputs = [ cmake python3 ]; preConfigure = ''