summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-06-10 14:52:55 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-06-10 15:30:13 +0200
commitc145f7930df909d583fe6d7fc862ff963a095f7a (patch)
tree1371460773ae8370807ea341a2004fa674ada982 /pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
parent35a73693f4132b5bc135bd650b8b03d6a08cd774 (diff)
downloadnixpkgs-c145f7930df909d583fe6d7fc862ff963a095f7a.tar
nixpkgs-c145f7930df909d583fe6d7fc862ff963a095f7a.tar.gz
nixpkgs-c145f7930df909d583fe6d7fc862ff963a095f7a.tar.bz2
nixpkgs-c145f7930df909d583fe6d7fc862ff963a095f7a.tar.lz
nixpkgs-c145f7930df909d583fe6d7fc862ff963a095f7a.tar.xz
nixpkgs-c145f7930df909d583fe6d7fc862ff963a095f7a.tar.zst
nixpkgs-c145f7930df909d583fe6d7fc862ff963a095f7a.zip
haskellPackages.hackage-db: downgrade to 2.1.0 if Cabal < 3.4
Stackage Nighly recently upgraded their version of hackage-db from 2.1.0
to 2.1.1. 2.1.1 had a compatibility fix for Cabal 3.4 [1]. However it
did not increase the version bound on Cabal nor fails to compile with
Cabal 3.2, so Stackage was able to update it.

Unfortunately hackage-db with Cabal 3.2 causes observable issues [2]
in cabal2nix, so we need to downgrade it for all compilers that still
ship a Cabal version < 3.4.

Also ideally we should update the constraints for hackage-db 2.1.0 and
hackage-db 2.1.1 on hackage. See also [3].

[1]: https://github.com/peti/hackage-db/pull/12
[2]: https://github.com/NixOS/cabal2nix/issues/501
[3]: https://github.com/peti/hackage-db/pull/14
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix4
1 files changed, 4 insertions, 0 deletions
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 aab26897cca..7908066ebb5 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
@@ -135,4 +135,8 @@ self: super: {
 
   # vector 0.12.2 indroduced doctest checks that don‘t work on older compilers
   vector = dontCheck super.vector;
+
+  # hackage-db 2.1.1 is incompatible with Cabal < 3.4
+  # See https://github.com/NixOS/cabal2nix/issues/501
+  hackage-db = super.hackage-db_2_1_0;
 }