binaryen: fix build with Node 20

This commit is contained in:
K900 2023-12-11 14:08:45 +03:00
parent 1e3b05e37f
commit 14655c8d9a

View file

@ -1,4 +1,4 @@
{ lib, stdenv, cmake, python3, fetchFromGitHub, emscripten, { lib, stdenv, cmake, python3, fetchFromGitHub, fetchpatch, emscripten,
gtest, lit, nodejs, filecheck gtest, lit, nodejs, filecheck
}: }:
@ -13,6 +13,15 @@ stdenv.mkDerivation rec {
hash = "sha256-gMwbWiP+YDCVafQMBWhTuJGWmkYtnhEdn/oofKaUT08="; hash = "sha256-gMwbWiP+YDCVafQMBWhTuJGWmkYtnhEdn/oofKaUT08=";
}; };
# Fix build with Node 20
# FIXME: remove for next release
patches = [
(fetchpatch {
url = "https://github.com/WebAssembly/binaryen/commit/889422e0c92552ff484659f9b41e777ba7ab35c1.patch";
hash = "sha256-acM8mytL9nhm4np9tpUbd1X0wJ7y308HV2fvgcAW1lY=";
})
];
nativeBuildInputs = [ cmake python3 ]; nativeBuildInputs = [ cmake python3 ];
preConfigure = '' preConfigure = ''