File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -442,15 +442,28 @@ let
442
442
fi
443
443
'' ) ghc-pkgs )
444
444
}
445
- ${ # There is not .cabal file for system-cxx-std-lib
445
+ ${ # There is no .cabal file for system-cxx-std-lib
446
446
pkgs . lib . optionalString ( builtins . compareVersions ghc . version "9.2" >= 0 ) (
447
447
let name = "system-cxx-std-lib" ; in ''
448
448
EXPOSED_MODULES_${ varname name } =""
449
449
DEPS_${ varname name } =""
450
450
VER_${ varname name } ="1.0"
451
451
PKGS+=" ${ name } "
452
452
LAST_PKG="${ name } "
453
- '' ) }
453
+ '' )
454
+ # ghcjs packages (before the ghc JS backend). TODO remove this when GHC 8.10 support is dropped
455
+ + pkgs . lib . optionalString ( pkgs . stdenv . targetPlatform . isGhcjs && builtins . compareVersions ghc . version "9" < 0 ) (
456
+ let name = "ghcjs-prim" ; in ''
457
+ EXPOSED_MODULES_${ varname "ghcjs-prim" } ="GHCJS.Prim GHCJS.Prim.Internal GHCJS.Prim.Internal.Build"
458
+ DEPS_${ varname "ghcjs-prim" } ="base ghc-prim"
459
+ VER_${ varname "ghcjs-prim" } ="0.1.1.0"
460
+ EXPOSED_MODULES_${ varname "ghcjs-th" } ="GHCJS.Prim.TH.Eval GHCJS.Prim.TH.Types"
461
+ DEPS_${ varname "ghcjs-th" } ="base binary bytestring containers ghc-prim ghci template-haskell"
462
+ VER_${ varname "ghcjs-th" } ="0.1.0.0"
463
+ PKGS+=" ghcjs-prim ghcjs-th"
464
+ LAST_PKG="ghcjs-th"
465
+ '' )
466
+ }
454
467
for pkg in $PKGS; do
455
468
varname="$(echo $pkg | tr "-" "_")"
456
469
ver="VER_$varname"
You can’t perform that action at this time.
0 commit comments