Revert "haskell.packages: remove constraint on monoid-extras"

This reverts commit 52d69816b0.

Unfortunately there is no way to update to monoid-extras 0.6 yet without
marking some packages as broken. The issue is that not all diagrams*
packages have had an update adding support for GHC 9.x yet (which would
also include monoid-extras 0.6 support). The only alternative to pinning
diagrams* and monoid-extras would be to have mismatched versions between
them which always causes issues with haskellPackages.diagrams.

Note that this commit re-introduces some build failures which are to be
fixed in a follow-up commit.
This commit is contained in:
sternenseemann 2021-06-05 01:01:56 +02:00
parent 083ac8e64c
commit 9a0592e682
3 changed files with 54 additions and 6 deletions

View File

@ -710,12 +710,17 @@ self: super: {
force-layout = doJailbreak super.force-layout;
size-based = doJailbreak super.size-based;
dual-tree = doJailbreak super.dual-tree;
diagrams-cairo = doJailbreak super.diagrams-cairo;
diagrams-core = doJailbreak super.diagrams-core;
diagrams-postscript = doJailbreak super.diagrams-postscript;
diagrams-svg = doJailbreak super.diagrams-svg;
diagrams-contrib = doJailbreak super.diagrams-contrib;
diagrams-lib = doJailbreak super.diagrams-lib;
# Apply patch from master to add compat with optparse-applicative >= 0.16.
diagrams-lib = doJailbreak (appendPatch super.diagrams-lib
(pkgs.fetchpatch {
url = "https://github.com/diagrams/diagrams-lib/commit/4b9842c3e3d653be69af19778970337775e2404d.patch";
sha256 = "0xqvzh3ip9i0nv8xnh41afxki64r259pxq8ir1a4v99ggnldpjaa";
includes = [ "*/CmdLine.hs" ];
}));
diagrams-rasterific = doJailbreak super.diagrams-rasterific;
# https://github.com/danidiaz/streaming-eversion/issues/1
@ -1802,6 +1807,10 @@ self: super: {
passthru.updateScript = ../../../maintainers/scripts/haskell/update-cabal2nix-unstable.sh;
};
# Too strict version bounds on base and optparse-applicative
# https://github.com/diagrams/diagrams-cairo/issues/77
diagrams-cairo = doJailbreak super.diagrams-cairo;
# Too strict version bounds on base
# https://github.com/gibiansky/IHaskell/issues/1217
ihaskell-display = doJailbreak super.ihaskell-display;
@ -1944,8 +1953,4 @@ EOT
testTarget = "libarchive-test --test-options='-j1'";
};
# 2021-06-03: Too strict bounds on monoid-extras
# https://github.com/xu-hao/namespace/issues/1
namespace = doJailbreak super.namespace;
} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super

View File

@ -77,6 +77,13 @@ default-package-overrides:
- gi-javascriptcore < 4.0.23 #
- gi-soup < 2.4.24 #
- gi-webkit2 < 4.0.27 #
# 2021-05-11: not all diagrams libraries have adjusted to
# monoid-extras 0.6 yet, keep them pinned to lower versions
# until we can do a full migration, see
# https://github.com/diagrams/diagrams-core/issues/115
# We can keep this pin at most until base 4.15
- monoid-extras < 0.6
- diagrams-core < 1.5.0
# 2021-05-11: Pin for hls 1.1.0
- ghcide == 1.2.*
- hls-plugin-api == 1.1.0.0

View File

@ -74287,6 +74287,25 @@ self: {
}) {};
"diagrams-core" = callPackage
({ mkDerivation, adjunctions, base, containers, distributive
, dual-tree, lens, linear, monoid-extras, mtl, profunctors
, semigroups, unordered-containers
}:
mkDerivation {
pname = "diagrams-core";
version = "1.4.2";
sha256 = "0qgb43vy23g4fxh3nmxfq6jyp34imqvkhgflaa6rz0iq6d60gl43";
revision = "1";
editedCabalFile = "0w8mpy0z8kmx4l7cg8sgc1hyixysjfqffdgmnxy5p04airjlbpj7";
libraryHaskellDepends = [
adjunctions base containers distributive dual-tree lens linear
monoid-extras mtl profunctors semigroups unordered-containers
];
description = "Core libraries for diagrams EDSL";
license = lib.licenses.bsd3;
}) {};
"diagrams-core_1_5_0" = callPackage
({ mkDerivation, adjunctions, base, containers, distributive
, dual-tree, lens, linear, monoid-extras, mtl, profunctors
, semigroups, unordered-containers
@ -74301,6 +74320,7 @@ self: {
];
description = "Core libraries for diagrams EDSL";
license = lib.licenses.bsd3;
hydraPlatforms = lib.platforms.none;
}) {};
"diagrams-graphviz" = callPackage
@ -177943,6 +177963,21 @@ self: {
}) {};
"monoid-extras" = callPackage
({ mkDerivation, base, criterion, groups, semigroupoids, semigroups
}:
mkDerivation {
pname = "monoid-extras";
version = "0.5.1";
sha256 = "0xfrkgqn9d31z54l617m3w3kkd5m9vjb4yl247r3zzql3mpb1f37";
revision = "2";
editedCabalFile = "0gbrwpr7rzh9mmf59yhs74hixgclmxngaxx51j7pvr6wnkbvz3a3";
libraryHaskellDepends = [ base groups semigroupoids semigroups ];
benchmarkHaskellDepends = [ base criterion semigroups ];
description = "Various extra monoid-related definitions and utilities";
license = lib.licenses.bsd3;
}) {};
"monoid-extras_0_6" = callPackage
({ mkDerivation, base, criterion, groups, semigroupoids, semigroups
}:
mkDerivation {
@ -177953,6 +177988,7 @@ self: {
benchmarkHaskellDepends = [ base criterion semigroups ];
description = "Various extra monoid-related definitions and utilities";
license = lib.licenses.bsd3;
hydraPlatforms = lib.platforms.none;
}) {};
"monoid-owns" = callPackage