119
119
INTEGER_LIBRARY = ${ if enableIntegerSimple then "integer-simple" else "integer-gmp" }
120
120
'' ;
121
121
122
+ nodejs = buildPackages . nodejs_24 ;
123
+
122
124
libffi-wasm = buildPackages . runCommand "libffi-wasm" {
123
125
nativeBuildInputs = [
124
126
( buildPackages . haskell-nix . tool "ghc912" "libffi-wasm" {
@@ -599,7 +601,7 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
599
601
'' + lib . optionalString ( targetPlatform . isWasm ) ''
600
602
substituteInPlace utils/jsffi/dyld.mjs \
601
603
--replace \
602
- "${ buildPackages . nodejs-with-lto } /bin/node --disable-warning=ExperimentalWarning ${
604
+ "${ nodejs } /bin/node --disable-warning=ExperimentalWarning ${
603
605
if builtins . compareVersions ghc-version "9.13" < 0
604
606
then "--experimental-wasm-type-reflection"
605
607
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 {
608
610
shift
609
611
LIB_WASM=$1
610
612
shift
611
- exec ${ buildPackages . nodejs-with-lto } /bin/node \
613
+ exec ${ nodejs } /bin/node \
612
614
--disable-warning=ExperimentalWarning \
613
615
${
614
616
if builtins . compareVersions ghc-version "9.13" < 0
@@ -636,7 +638,7 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
636
638
ghc bootPkgs . alex bootPkgs . happy bootPkgs . hscolour
637
639
] ++ lib . optional ( patches != [ ] ) autoreconfHook
638
640
++ lib . optional useLdLld llvmPackages . bintools
639
- ++ lib . optional ( targetPlatform . isWasm ) buildPackages . nodejs-with-lto ;
641
+ ++ lib . optional ( targetPlatform . isWasm ) nodejs ;
640
642
641
643
# For building runtime libs
642
644
depsBuildTarget = toolsForTarget ;
0 commit comments