Skip to content

Commit fadf922

Browse files
authored
Fix stack build (#1795)
See commercialhaskell/stack#5963
1 parent 2f42ad0 commit fadf922

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

modules/hackage-quirks.nix

+12
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)