forked from haskell/haskell-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration-ghc-921.nix
42 lines (38 loc) · 1.24 KB
/
configuration-ghc-921.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# nix version of cabal-ghc901.project
{ pkgs, inputs }:
let
disabledPlugins = [
"hls-brittany-plugin"
"hls-stylish-haskell-plugin"
];
hpkgsOverride = hself: hsuper:
with pkgs.haskell.lib;
{
fourmolu = hself.callCabal2nix "fourmolu" inputs.fourmolu {};
primitive-extras = hself.primitive-extras_0_10_1_2;
ghc-exactprint = hself.callCabal2nix "ghc-exactprint" inputs.ghc-exactprint {};
constraints-extras = hself.callCabal2nix "constraints-extras" inputs.constraints-extras {};
retrie = hself.callCabal2nix "retrie" inputs.retrie {};
hlint = doJailbreak (hself.callCabal2nix "hlint" inputs.hlint {});
# Re-generate HLS drv excluding some plugins
haskell-language-server =
hself.callCabal2nixWithOptions "haskell-language-server" ./.
(pkgs.lib.concatStringsSep " " [
"-f-brittany"
"-f-stylishhaskell"
"-f-hlint"
"-f-haddockComments"
"-f-alternateNumberFormat"
"-f-eval"
]) { };
# YOLO
mkDerivation = args:
hsuper.mkDerivation (args // {
jailbreak = true;
doCheck = false;
});
};
in {
inherit disabledPlugins;
tweakHpkgs = hpkgs: hpkgs.extend hpkgsOverride;
}