Skip to content

Commit 5881741

Browse files
committed
Fix nix build for haskell#1858
1 parent 401cdef commit 5881741

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

flake.nix

+13-2
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,21 @@
6969
} // pluginSourceDirs;
7070

7171
# Tweak our packages
72+
# Don't use `callHackage`, it requires us to override `all-cabal-hashes`
7273
tweaks = hself: hsuper:
7374
with haskell.lib; {
74-
hls-hlint-plugin =
75-
hsuper.hls-hlint-plugin.override { hlint = hself.hlint_3_2_7; };
75+
# https://github.com/haskell/haskell-language-server/pull/1858
76+
apply-refact_0_9_3_0 = hself.callCabal2nix "apply-refact"
77+
(builtins.fetchTarball {
78+
url =
79+
"https://hackage.haskell.org/package/apply-refact-0.9.3.0/apply-refact-0.9.3.0.tar.gz";
80+
sha256 =
81+
"1jfq1aw91finlpq5nn7a96za4c8j13jk6jmx2867fildxwrik2qj";
82+
}) { };
83+
hls-hlint-plugin = hsuper.hls-hlint-plugin.override {
84+
hlint = hself.hlint_3_2_7;
85+
apply-refact = hself.apply-refact_0_9_3_0;
86+
};
7687
hls-tactics-plugin = hsuper.hls-tactics-plugin.override {
7788
refinery = hself.refinery_0_3_0_0;
7889
};

0 commit comments

Comments
 (0)