haskellPackages.weeder: downgrade to 2.2.0 to keep building

2.3.0 requires GHC 9.0.*, so we'll have to downgrade it for
now. Additionally we'll take this opportunity to fix
haskell.packages.ghc901.weeder and its dependencies.
This commit is contained in:
sternenseemann 2021-10-13 13:46:30 +02:00
parent bde22ab96e
commit 0e90a1f13d
3 changed files with 39 additions and 0 deletions

View file

@ -72,6 +72,17 @@ self: super: {
vector-binary-instances = doJailbreak super.vector-binary-instances;
vector-th-unbox = doJailbreak super.vector-th-unbox;
zlib = doJailbreak super.zlib;
weeder = self.weeder_2_3_0;
generic-lens-core = self.generic-lens-core_2_2_0_0;
generic-lens = self.generic-lens_2_2_0_0;
# Doesn't allow Dhall 1.39.*
weeder_2_3_0 = super.weeder_2_3_0.override {
dhall = self.dhall_1_40_1;
};
# Upstream also disables test for GHC 9: https://github.com/kcsongor/generic-lens/pull/130
generic-lens_2_2_0_0 = dontCheck super.generic-lens_2_2_0_0;
# Apply patches from head.hackage.
alex = appendPatch (dontCheck super.alex) (pkgs.fetchpatch {

View file

@ -98,6 +98,8 @@ default-package-overrides:
- ghc-api-compat == 8.10.7
# 2021-09-14: Pin hiedb to version needed by ghcide
- hiedb == 0.4.0.*
# 2021-10-13: weeder 2.3.0 require GHC == 9.0.*; remove pin when GHC version changes
- weeder < 2.3.0
extra-packages:
- base16-bytestring < 1 # required for cabal-install etc.

View file

@ -288126,6 +288126,31 @@ self: {
}) {};
"weeder" = callPackage
({ mkDerivation, algebraic-graphs, base, bytestring, containers
, dhall, directory, filepath, generic-lens, ghc, lens, mtl
, optparse-applicative, regex-tdfa, text, transformers
}:
mkDerivation {
pname = "weeder";
version = "2.2.0";
sha256 = "07ylcq8mza4429snaklhfszpg2c0xcp75hyf0jxhi32mpiz7a5v2";
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
algebraic-graphs base bytestring containers dhall directory
filepath generic-lens ghc lens mtl optparse-applicative regex-tdfa
text transformers
];
executableHaskellDepends = [
base bytestring containers directory filepath ghc
optparse-applicative transformers
];
description = "Detect dead code";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ maralorn ];
}) {};
"weeder_2_3_0" = callPackage
({ mkDerivation, algebraic-graphs, base, bytestring, containers
, dhall, directory, filepath, generic-lens, ghc, lens, mtl
, optparse-applicative, regex-tdfa, text, transformers
@ -288147,6 +288172,7 @@ self: {
];
description = "Detect dead code";
license = lib.licenses.bsd3;
hydraPlatforms = lib.platforms.none;
maintainers = with lib.maintainers; [ maralorn ];
}) {};