From e9c1dac2ab807e180cfbf5652872ba6410ed9b36 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 27 Mar 2023 14:16:14 +0200 Subject: [PATCH] haskellPackages.cabal-install.scope.vector: don't pull in doctest doctest depends on GHC which triggers inconsistent dependencies similarly to hspec* < 2.10, so we need to avoid this. This problem newly cropped up since we enabled tests for vector in #222190. --- pkgs/development/haskell-modules/configuration-common.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index dd4b6da849cc..609aabe52ee3 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -70,9 +70,9 @@ self: super: { # are overridden to take the versioned attributes as inputs, we need # to make sure to override the versioned attribute with this fix. hspec-discover_2_10_10 = dontCheck csuper.hspec-discover_2_10_10; - } // 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 + # due to depending on ghc which depends on directory etc. vector = dontCheck csuper.vector; }; in