mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-13 16:07:30 +03:00
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
This commit is contained in:
parent
35a73693f4
commit
c145f7930d
@ -87,4 +87,8 @@ self: super: {
|
||||
# Break out of "Cabal < 3.2" constraint.
|
||||
stylish-haskell = doJailbreak super.stylish-haskell;
|
||||
|
||||
# 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;
|
||||
|
||||
}
|
||||
|
@ -106,4 +106,8 @@ self: super: {
|
||||
# https://github.com/haskellari/time-compat/issues/23
|
||||
time-compat = dontCheck super.time-compat;
|
||||
|
||||
# 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;
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -125,6 +125,7 @@ extra-packages:
|
||||
- gi-gtk < 4.0 # 2021-05-07: For haskell-gi 0.25 without gtk4
|
||||
- gi-gdkx11 == 3.0.11 # 2021-05-07: For haskell-gi 0.25 without gtk4
|
||||
- ShellCheck == 0.7.1 # 2021-05-09: haskell-ci 0.12.1 pins this version
|
||||
- hackage-db < 2.1.1 # 2021-06-10: Need older hackage-db as long as Cabal < 3.4, see https://github.com/NixOS/cabal2nix/issues/501
|
||||
|
||||
package-maintainers:
|
||||
abbradar:
|
||||
|
@ -114128,6 +114128,28 @@ self: {
|
||||
broken = true;
|
||||
}) {};
|
||||
|
||||
"hackage-db_2_1_0" = callPackage
|
||||
({ mkDerivation, aeson, base, bytestring, Cabal, containers
|
||||
, directory, exceptions, filepath, tar, time, utf8-string
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "hackage-db";
|
||||
version = "2.1.0";
|
||||
sha256 = "1vsc0lrbrb525frycqq0c5z846whymgcjl888gnlqd16nknbsn3l";
|
||||
revision = "1";
|
||||
editedCabalFile = "1h3x5a8xmqkkcd3h1m7z0il1vbsh2c77685y68zmyp21zb1y88hy";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
libraryHaskellDepends = [
|
||||
aeson base bytestring Cabal containers directory exceptions
|
||||
filepath tar time utf8-string
|
||||
];
|
||||
description = "Access cabal-install's Hackage database via Data.Map";
|
||||
license = lib.licenses.bsd3;
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
maintainers = with lib.maintainers; [ peti ];
|
||||
}) {};
|
||||
|
||||
"hackage-db" = callPackage
|
||||
({ mkDerivation, aeson, base, bytestring, Cabal, containers
|
||||
, directory, exceptions, filepath, tar, time, utf8-string
|
||||
|
Loading…
Reference in New Issue
Block a user