From cbf9f5268dfd5c7c531fd4a80092ed30307bea48 Mon Sep 17 00:00:00 2001 From: Peter Becich Date: Wed, 3 Jul 2024 22:54:48 -0700 Subject: [PATCH] haskellPackages.cabal_3_12_0_0: fix build closes: https://github.com/NixOS/nixpkgs/issues/324425 --- pkgs/development/haskell-modules/configuration-common.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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 (