From 524ddeb34f94a60029bb7835cbe095ffdf647e0e Mon Sep 17 00:00:00 2001 From: Gabriella Gonzalez Date: Thu, 17 Nov 2022 16:44:16 -0600 Subject: [PATCH] haskell.packages.ghc94.{or,four}molu: Disable fixity-th flag See: https://github.com/tweag/ormolu/issues/941 --- .../haskell-modules/configuration-ghc-9.4.x.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix index 420c80404ed2..caf964eee520 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix @@ -220,4 +220,12 @@ in { hls-retrie-plugin = null; hls-splice-plugin = null; }; + + # https://github.com/tweag/ormolu/issues/941 + ormolu = overrideCabal (drv: { + libraryHaskellDepends = drv.libraryHaskellDepends ++ [ self.file-embed ]; + }) (disableCabalFlag "fixity-th" super.ormolu); + fourmolu = overrideCabal (drv: { + libraryHaskellDepends = drv.libraryHaskellDepends ++ [ self.file-embed ]; + }) (disableCabalFlag "fixity-th" super.fourmolu); }