diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index a3a337417940..1e6cd5e321e5 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -27,6 +27,13 @@ self: super: { process = self.process_1_6_20_0; })); + Cabal_3_12_0_0 = doDistribute (super.Cabal_3_12_0_0.override ({ + Cabal-syntax = self.Cabal-syntax_3_12_0_0; + } // lib.optionalAttrs (lib.versionOlder self.ghc.version "9.2.5") { + # Use process core package when possible + process = self.process_1_6_20_0; + })); + # cabal-install needs most recent versions of Cabal and Cabal-syntax, # so we need to put some extra work for non-latest GHCs inherit (