From 229609de1667dacbc2662b59362c76bf4e468e63 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 26 Mar 2022 22:39:42 +0100 Subject: [PATCH] haskellPackages.cabal-install-parsers: provide Cabal 3.6 --- pkgs/development/haskell-modules/configuration-common.nix | 4 +++- pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix | 3 --- pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix | 3 --- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 8bab9212d1fc..faf80dc71af3 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1285,7 +1285,9 @@ self: super: { # The test suite depends on an impure cabal-install installation in # $HOME, which we don't have in our build sandbox. - cabal-install-parsers = dontCheck super.cabal-install-parsers; + cabal-install-parsers = dontCheck (super.cabal-install-parsers.override { + Cabal = self.Cabal_3_6_3_0; + }); # 2022-03-12: Pick patches from master for compat with Stackage Nightly gitit = appendPatches [ diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix index 2f11410661bd..dc480666ba6f 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix @@ -46,9 +46,6 @@ self: super: { Cabal = self.Cabal_3_6_3_0; }); - # cabal-install-parsers is written for Cabal 3.6 - cabal-install-parsers = super.cabal-install-parsers.override { Cabal = super.Cabal_3_6_3_0; }; - # Pick right versions for GHC-specific packages ghc-api-compat = doDistribute self.ghc-api-compat_8_10_7; diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix index 0ff1294c1dbf..c0e9b7aab5ae 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -96,9 +96,6 @@ self: super: { # of issues with Cabal 3.x. darcs = dontDistribute super.darcs; - # The package needs the latest Cabal version. - cabal-install-parsers = super.cabal-install-parsers.overrideScope (self: super: { Cabal = self.Cabal_3_6_3_0; }); - # cabal-fmt requires Cabal3 cabal-fmt = super.cabal-fmt.override { Cabal = self.Cabal_3_2_1_0; };