diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-12-02 21:26:42 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-07 10:57:10 +0100 |
commit | f431d7ddab38764cb573d340951a090ddcb48de5 (patch) | |
tree | c409c7ec8aef0787243b54b58a6424ef743c0fed /pkgs/development/compilers/binaryen | |
parent | 59048500b27505ef81b13bc0716a2822be616b4e (diff) |
binaryen: backport fix for nodejs 20
Link: https://github.com/NixOS/nixpkgs/pull/271494#issuecomment-1836920695 Fixes: c4b3cc031e05 ("nodejs: default to nodejs_20")
Diffstat (limited to 'pkgs/development/compilers/binaryen')
-rw-r--r-- | pkgs/development/compilers/binaryen/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/compilers/binaryen/default.nix b/pkgs/development/compilers/binaryen/default.nix index dcadf054bc30f..6473d53fbaba6 100644 --- a/pkgs/development/compilers/binaryen/default.nix +++ b/pkgs/development/compilers/binaryen/default.nix @@ -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 = '' |