Skip to content

Commit 6214979

Browse files
committed
Add error for old haskell.nix
1 parent 4b348f5 commit 6214979

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

default.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
builtins.throw ''
2+
This version of hackage.nix is not compatible with older versions of haskell.nix.
3+
Newer versions of hackage.nix are significantly smaller, and faster to download.
4+
5+
However newer versions of haskell.nix are lacking high fidelity support for GHC 8.10,
6+
as such windows cross compilation is broken, and more may break going forward.
7+
8+
You have two options:
9+
10+
1. Please update to a newer version of haskell.nix, or
11+
12+
2. If you cannot update haskell.nix it is recommended that you pin your haskell.nix
13+
to your current revision or `cb139fa956158397aa398186bb32dd26f7318784` and point
14+
hackage.nix to `github:input-output-hk/hackage.nix?ref=for-stackage` as shown below:
15+
16+
hackageNix = {
17+
url = "github:input-output-hk/hackage.nix?ref=for-stackage";
18+
flake = false;
19+
};
20+
21+
haskellNix = {
22+
# GHC 8.10.7 cross compilation for windows is broken in newer versions of haskell.nix.
23+
# Unpin this once we no longer need GHC 8.10.7.
24+
url = "github:input-output-hk/haskell.nix/cb139fa956158397aa398186bb32dd26f7318784";
25+
inputs.hackage.follows = "hackageNix";
26+
};
27+
28+
''

0 commit comments

Comments
 (0)