Skip to content

Commit

Permalink
Only apply the GHC patch on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Jun 9, 2024
1 parent 2363e19 commit 52debe8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NixSupport/mkGhcCompiler.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ let
ihpDoJailbreakPackages = ["microlens-th"];
ihpDontHaddockPackages = [];
in ghcCompiler.override {
ghc = ghcCompiler.ghc.overrideAttrs (oldAttrs: {
patches = [ ./ghc-12264.patch ] ++ (oldAttrs.patches or []);
});
ghc = if pkgs.stdenv.isDarwin
then ghcCompiler.ghc.overrideAttrs (oldAttrs: { patches = [ ./ghc-12264.patch ] ++ (oldAttrs.patches or []); })
else ghcCompiler.ghc;
overrides = composeExtensionsList [
generatedOverrides

Expand Down

0 comments on commit 52debe8

Please sign in to comment.