Skip to content

Commit d795bb9

Browse files
committed
Fix nix build for haskell#1858
1 parent 204fdcb commit d795bb9

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

flake.nix

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,22 @@
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+
# Remove this when nixpkgs has thie package
77+
apply-refact_0_9_3_0 = hself.callCabal2nix "apply-refact"
78+
(builtins.fetchTarball {
79+
url =
80+
"https://hackage.haskell.org/package/apply-refact-0.9.3.0/apply-refact-0.9.3.0.tar.gz";
81+
sha256 =
82+
"1jfq1aw91finlpq5nn7a96za4c8j13jk6jmx2867fildxwrik2qj";
83+
}) { };
84+
hls-hlint-plugin = hsuper.hls-hlint-plugin.override {
85+
hlint = hself.hlint_3_2_7;
86+
apply-refact = hself.apply-refact_0_9_3_0;
87+
};
7688
hls-tactics-plugin = hsuper.hls-tactics-plugin.override {
7789
refinery = hself.refinery_0_3_0_0;
7890
};

0 commit comments

Comments
 (0)