From a5821740f82f136fa3f7e9bf88bcfe6ac8e1a62a Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 19 Feb 2023 13:16:55 +0100 Subject: [PATCH] haskell.packages.*.[cC]abal*: use process 1.6.17.0 for GHC < 9.2.5 Cabal 3.8 and friends support process 1.6.17.0 which has recently been released on Hackage, so we can fix the evaluation errors this way. --- pkgs/development/haskell-modules/configuration-common.nix | 2 +- pkgs/development/haskell-modules/configuration-nix.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index dd05f979ef03..aed5bc3ac249 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -31,7 +31,7 @@ self: super: { Cabal-syntax = cself.Cabal-syntax_3_8_1_0; } // lib.optionalAttrs (lib.versionOlder self.ghc.version "9.2.5") { # GHC 9.2.5 starts shipping 1.6.16.0 - process = cself.process_1_6_16_0; + process = cself.process_1_6_17_0; } // lib.optionalAttrs (lib.versions.majorMinor self.ghc.version == "8.10") { # Prevent dependency on doctest which causes an inconsistent dependency # due to depending on ghc-8.10.7 (with bundled process) vs. process 1.6.16.0 diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 50210cdccb3d..9d633d7a5297 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -1057,7 +1057,7 @@ self: super: builtins.intersectAttrs super { Cabal-syntax = self.Cabal-syntax_3_8_1_0; } // lib.optionalAttrs (lib.versionOlder self.ghc.version "9.2.5") { # Use process core package when possible - process = self.process_1_6_16_0; + process = self.process_1_6_17_0; })); # cabal-install switched to build type simple in 3.2.0.0