119119 INTEGER_LIBRARY = ${ if enableIntegerSimple then "integer-simple" else "integer-gmp" }
120120 '' ;
121121
122+ nodejs = buildPackages . nodejs_24 ;
123+
122124 libffi-wasm = buildPackages . runCommand "libffi-wasm" {
123125 nativeBuildInputs = [
124126 ( buildPackages . haskell-nix . tool "ghc912" "libffi-wasm" {
@@ -599,7 +601,7 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
599601 '' + lib . optionalString ( targetPlatform . isWasm ) ''
600602 substituteInPlace utils/jsffi/dyld.mjs \
601603 --replace \
602- "${ buildPackages . nodejs-with-lto } /bin/node --disable-warning=ExperimentalWarning ${
604+ "${ nodejs } /bin/node --disable-warning=ExperimentalWarning ${
603605 if builtins . compareVersions ghc-version "9.13" < 0
604606 then "--experimental-wasm-type-reflection"
605607 else "--max-old-space-size=65536" } --no-turbo-fast-api-calls --wasm-lazy-validation" \
@@ -608,7 +610,7 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
608610 shift
609611 LIB_WASM=$1
610612 shift
611- exec ${ buildPackages . nodejs-with-lto } /bin/node \
613+ exec ${ nodejs } /bin/node \
612614 --disable-warning=ExperimentalWarning \
613615 ${
614616 if builtins . compareVersions ghc-version "9.13" < 0
@@ -636,7 +638,7 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
636638 ghc bootPkgs . alex bootPkgs . happy bootPkgs . hscolour
637639 ] ++ lib . optional ( patches != [ ] ) autoreconfHook
638640 ++ lib . optional useLdLld llvmPackages . bintools
639- ++ lib . optional ( targetPlatform . isWasm ) buildPackages . nodejs-with-lto ;
641+ ++ lib . optional ( targetPlatform . isWasm ) nodejs ;
640642
641643 # For building runtime libs
642644 depsBuildTarget = toolsForTarget ;
0 commit comments