Skip to content

Fix nix build for #1858 #1870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 27, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix nix build for #1858
  • Loading branch information
berberman committed May 27, 2021
commit d795bb9fd6b1e3ba3bd0d582e544a2dcc3895d0d
16 changes: 14 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,22 @@
} // pluginSourceDirs;

# Tweak our packages
# Don't use `callHackage`, it requires us to override `all-cabal-hashes`
tweaks = hself: hsuper:
with haskell.lib; {
hls-hlint-plugin =
hsuper.hls-hlint-plugin.override { hlint = hself.hlint_3_2_7; };
# https://github.com/haskell/haskell-language-server/pull/1858
# Remove this when nixpkgs has thie package
apply-refact_0_9_3_0 = hself.callCabal2nix "apply-refact"
(builtins.fetchTarball {
url =
"https://hackage.haskell.org/package/apply-refact-0.9.3.0/apply-refact-0.9.3.0.tar.gz";
sha256 =
"1jfq1aw91finlpq5nn7a96za4c8j13jk6jmx2867fildxwrik2qj";
}) { };
hls-hlint-plugin = hsuper.hls-hlint-plugin.override {
hlint = hself.hlint_3_2_7;
apply-refact = hself.apply-refact_0_9_3_0;
};
hls-tactics-plugin = hsuper.hls-tactics-plugin.override {
refinery = hself.refinery_0_3_0_0;
};
Expand Down