Skip to content

Commit 8d7e8f1

Browse files
jneiralf-peterbecich
authored
Update flake to fix nix builds (#2188)
* update ghc-api-compat * Add ghc-api-compat to 9.0.1 * update sha256 acquired by providing empty sha256 and causing error * Update sha for ghc-api-compat-9.0.1 Co-authored-by: Jade <[email protected]> Co-authored-by: Peter Becich <[email protected]>
1 parent 09ee25e commit 8d7e8f1

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

configuration-ghc-901.nix

+7
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ let
2525

2626
# we need add ghc-api-compat to build depends,
2727
# since its condition tree is not evaluated under ghc 9
28+
29+
ghc-api-compat = hself.callHackageDirect {
30+
pkg = "ghc-api-compat";
31+
ver = "9.0.1";
32+
sha256 = "WCK1gu6iiCAc2s2rFEqn2CkvHkITPrmDjuiGsWOWerM=";
33+
} {};
34+
2835
hiedb = addBuildDepend hsuper.hiedb hself.ghc-api-compat;
2936

3037
blaze-textual = hself.callCabal2nix "blaze-textual"

flake.nix

+5-7
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,11 @@
7171
tweaks = hself: hsuper:
7272
with haskell.lib; {
7373

74-
ghc-api-compat = hself.callCabal2nix "ghc-api-compat"
75-
(pkgs.fetchFromGitHub {
76-
owner = "hsyl20";
77-
repo = "ghc-api-compat";
78-
rev = "8fee87eac97a538dbe81ff1ab18cff10f2f9fa15";
79-
sha256 = "byehvdxQxhNk5ZQUXeFHjAZpAze4Ct9261ro4c5acZk=";
80-
}) { };
74+
ghc-api-compat = hself.callHackageDirect {
75+
pkg = "ghc-api-compat";
76+
ver = "8.10.7";
77+
sha256 = "g9/InDeQfiXCB9SK8mpl/8B5QEEobj9uqo4xe//telw=";
78+
} {};
8179

8280
lsp = hself.lsp_1_2_0_1;
8381

0 commit comments

Comments
 (0)