File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 45
45
46
46
# Avoid pantry 0.9 in versions without https://github.com/commercialhaskell/stack/pull/6187
47
47
# Also avoid optparse-applicative 0.18
48
+ # http-download 0.2.1 https://github.com/commercialhaskell/stack/issues/6210
48
49
( { config , lib , pkgs , ...} :
49
50
{ _file = "haskell.nix/overlays/hackage-quirks.nix#stack" ; } //
50
- lib . mkIf ( config . name == "stack" && builtins . compareVersions config . version "2.11.1" <= 0 ) {
51
- cabalProjectLocal = ''
52
- constraints: pantry <0.9, optparse-applicative <0.18
53
- '' ;
51
+ lib . mkIf ( config . name == "stack" ) {
52
+ cabalProjectLocal =
53
+ if builtins . compareVersions config . version "2.11.1" <= 0 then ''
54
+ constraints: pantry <0.9, optparse-applicative <0.18, http-download <0.2.1
55
+ ''
56
+ else if builtins . compareVersions config . version "2.11.1.1" <= 0 then ''
57
+ constraints: http-download <0.2.1
58
+ ''
59
+ else "" ;
54
60
}
55
61
)
56
62
You can’t perform that action at this time.
0 commit comments