Skip to content

Commit ec0aa36

Browse files
authored
Fix gi-gtk for ghc 9.8.1 (input-output-hk#2159)
1 parent 4299059 commit ec0aa36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/configuration-nix.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ in {
183183
# https://gitlab.haskell.org/ghc/ghc/-/issues/23392
184184
# Using -j1 works around the issue.
185185
packages.gi-gtk.components.library.ghcOptions =
186-
pkgs.lib.optional (__elem config.compiler.nix-name ["ghc961" "ghc962" "ghc963" "ghc964"]) "-j1";
186+
pkgs.lib.optional (
187+
builtins.compareVersions config.compiler.version "9.6.1" >= 0
188+
&& builtins.compareVersions config.compiler.version "9.9" < 0) "-j1";
187189

188190
# With recent versions of nixpkgs fortify causes musl version of the
189191
# text package to fail with:

0 commit comments

Comments
 (0)