Skip to content

Commit 0ca9c57

Browse files
committed
Add ghc-boot-th-next
1 parent e11cc24 commit 0ca9c57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/ghc/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,11 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
601601
# The official ghc 9.2.3 tarball requires booting.
602602
+ lib.optionalString (ghc-version == "9.2.3" || ghc-version == "9.8.20230704" || src-spec.needsBooting or false) ''
603603
python3 ./boot
604+
'' + lib.optionalString (builtins.compareVersions ghc-version "9.14" > 0) ''
605+
mkdir -p libraries/ghc-boot-th-next
606+
cp libraries/ghc-boot-th/ghc-boot-th.cabal.in libraries/ghc-boot-th-next/ghc-boot-th-next.cabal.in
607+
substituteInPlace libraries/ghc-boot-th-next/ghc-boot-th-next.cabal.in \
608+
--replace-fail "ghc-boot-th" "ghc-boot-th-next"
604609
'';
605610

606611
configurePlatforms = [ "build" "host" ] ++ lib.optional (!targetPlatform.isGhcjs) "target";

0 commit comments

Comments
 (0)