Skip to content

Commit

Permalink
Merge #273521: node 20 fixes
Browse files Browse the repository at this point in the history
...into staging-next
  • Loading branch information
vcunat committed Dec 11, 2023
2 parents 6ac7b92 + 3b235f0 commit 48b286b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion pkgs/development/compilers/binaryen/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, cmake, python3, fetchFromGitHub, emscripten,
{ lib, stdenv, cmake, python3, fetchFromGitHub, fetchpatch, emscripten,
gtest, lit, nodejs, filecheck
}:

Expand All @@ -13,6 +13,15 @@ stdenv.mkDerivation rec {
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 ];

preConfigure = ''
Expand Down
5 changes: 4 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,10 @@ with pkgs;
};
akkoma-frontends = recurseIntoAttrs {
akkoma-fe = callPackage ../servers/akkoma/akkoma-fe { };
admin-fe = callPackage ../servers/akkoma/admin-fe { };
admin-fe = callPackage ../servers/akkoma/admin-fe {
nodejs = nodejs_18;
yarn = yarn.override { nodejs = nodejs_18; };
};
};
akkoma-emoji = recurseIntoAttrs {
blobs_gg = callPackage ../servers/akkoma/emoji/blobs_gg.nix { };
Expand Down

0 comments on commit 48b286b

Please sign in to comment.