-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add the nix stuffs for GHC 9.4
I've just added naively the different nix lines. The configuration file comes from a copy of the one for 9.2. With that, we can open a shell with `nix develop .\#haskell-language-server-941-dev` and type `cabal build`. (cherry picked from commit 48084ab)
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ pkgs, inputs }: | ||
|
||
let | ||
disabledPlugins = [ | ||
"hls-hlint-plugin" | ||
# That one is not technically a plugin, but by putting it in this list, we | ||
# get it removed from the top level list of requirement and it is not pull | ||
# in the nix shell. | ||
"shake-bench" | ||
]; | ||
|
||
hpkgsOverride = hself: hsuper: | ||
with pkgs.haskell.lib; | ||
{ | ||
hlsDisabledPlugins = disabledPlugins; | ||
# YOLO | ||
mkDerivation = args: | ||
hsuper.mkDerivation (args // { | ||
jailbreak = true; | ||
doCheck = false; | ||
}); | ||
} // (builtins.mapAttrs (_: drv: disableLibraryProfiling drv) { | ||
# ptr-poker breaks on MacOS without SSE2 optimizations | ||
# https://github.com/nikita-volkov/ptr-poker/issues/11 | ||
ptr-poker = hself.callCabal2nix "ptr-poker" inputs.ptr-poker { }; | ||
|
||
ghc-exactprint = | ||
hself.callCabal2nix "ghc-exactprint" inputs.ghc-exactprint-150 { }; | ||
# Hlint is still broken | ||
hlint = doJailbreak (hself.callCabal2nix "hlint" inputs.hlint { }); | ||
|
||
stylish-haskell = appendConfigureFlag hsuper.stylish-haskell "-fghc-lib"; | ||
|
||
# Re-generate HLS drv excluding some plugins | ||
haskell-language-server = | ||
hself.callCabal2nixWithOptions "haskell-language-server" ./. | ||
(pkgs.lib.concatStringsSep " " [ "-fpedantic" "-f-hlint" ]) { }; | ||
}); | ||
in { | ||
inherit disabledPlugins; | ||
tweakHpkgs = hpkgs: hpkgs.extend hpkgsOverride; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters