Skip to content

Commit 40094dc

Browse files
Try #1795:
2 parents 5b03fc0 + d037e54 commit 40094dc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

modules/hackage-quirks.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ in [
6969
}
7070
)
7171

72+
# The latest version of stack (2.9.1) in hackage fails to build because the
73+
# of version of rio-prettyprint (recently released 0.1.4.0) chosen by cabal.
74+
# https://github.com/commercialhaskell/stack/issues/5963
75+
({config, lib, pkgs, ...}:
76+
{ _file = "haskell.nix/overlays/hackage-quirks.nix#stack"; } //
77+
lib.mkIf (config.name == "stack" && builtins.compareVersions config.version "2.9.1" <= 0) {
78+
cabalProjectLocal = ''
79+
constraints: rio-prettyprint <0.1.4.0
80+
'';
81+
}
82+
)
83+
7284
# Map the following into modules that use `mkIf` to check the name of the
7385
# hackage package in a way that is lazy enought not to cause infinite recursion
7486
# issues.

0 commit comments

Comments
 (0)