binaryen: backport fix for nodejs 20

Link: https://github.com/NixOS/nixpkgs/pull/271494#issuecomment-1836920695
Fixes: c4b3cc031e ("nodejs: default to nodejs_20")
This commit is contained in:
Alyssa Ross
2023-12-07 10:57:10 +01:00
parent 59048500b2
commit f431d7ddab
@@ -1,4 +1,4 @@
{ lib, stdenv, cmake, python3, fetchFromGitHub, emscripten,
{ lib, stdenv, cmake, python3, fetchFromGitHub, fetchpatch, emscripten,
gtest, lit, nodejs, filecheck
}:
@@ -13,6 +13,14 @@ stdenv.mkDerivation rec {
hash = "sha256-gMwbWiP+YDCVafQMBWhTuJGWmkYtnhEdn/oofKaUT08=";
};
patches = [
(fetchpatch {
name = "nodejs-20.patch";
url = "https://github.com/WebAssembly/binaryen/commit/889422e0c92552ff484659f9b41e777ba7ab35c1.patch";
hash = "sha256-acM8mytL9nhm4np9tpUbd1X0wJ7y308HV2fvgcAW1lY=";
})
];
nativeBuildInputs = [ cmake python3 ];
preConfigure = ''