From ec0aa36bb865b4964da31eb5b1691db20a190478 Mon Sep 17 00:00:00 2001 From: Hamish Mackenzie Date: Wed, 14 Feb 2024 12:24:34 +1300 Subject: [PATCH] Fix gi-gtk for ghc 9.8.1 (#2159) --- modules/configuration-nix.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/configuration-nix.nix b/modules/configuration-nix.nix index 43418218ab..169118c715 100644 --- a/modules/configuration-nix.nix +++ b/modules/configuration-nix.nix @@ -183,7 +183,9 @@ in { # https://gitlab.haskell.org/ghc/ghc/-/issues/23392 # Using -j1 works around the issue. packages.gi-gtk.components.library.ghcOptions = - pkgs.lib.optional (__elem config.compiler.nix-name ["ghc961" "ghc962" "ghc963" "ghc964"]) "-j1"; + pkgs.lib.optional ( + builtins.compareVersions config.compiler.version "9.6.1" >= 0 + && builtins.compareVersions config.compiler.version "9.9" < 0) "-j1"; # With recent versions of nixpkgs fortify causes musl version of the # text package to fail with: