File tree 2 files changed +14
-13
lines changed
2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 10
10
"hls-fourmolu-plugin"
11
11
"hls-splice-plugin"
12
12
"hls-ormolu-plugin"
13
+ "hls-eval-plugin"
13
14
] ;
14
15
hpkgsOverride = hself : hsuper :
15
16
with pkgs . haskell . lib ;
84
85
85
86
ghc-lib-parser-ex = hself . ghc-lib-parser-ex_9_0_0_4 ;
86
87
87
- # Disable plugins
88
+ # Re-generate HLS drv excluding some plugins
88
89
haskell-language-server =
89
- appendConfigureFlags hsuper . haskell-language-server [
90
- "-brittany"
91
- "-eval "
92
- "-fourmolu "
93
- "-ormolu "
94
- "-splice "
95
- "-stylishhaskell "
96
- "-tactic "
97
- "-refineImports "
98
- ] ;
90
+ hself . callCabal2nixWithOptions " haskell-language-server" ./.
91
+ ( pkgs . lib . concatStringsSep " " [
92
+ "-f-brittany "
93
+ "-f-eval "
94
+ "-f-fourmolu "
95
+ "-f-ormolu "
96
+ "-f-splice "
97
+ "-f-stylishhaskell "
98
+ "-f-tactic "
99
+ ] ) { } ;
99
100
} ;
100
- in { tweakHpkgs = hpkgs : ( removePluginPackages hpkgs ) . extend hpkgsOverride ; }
101
+ in { tweakHpkgs = hpkgs : removePluginPackages ( hpkgs . extend hpkgsOverride ) ; }
Original file line number Diff line number Diff line change 179
179
# we can remove sources attrs from hpkgs to exclude HLS plugins,
180
180
# so hpkgs may not be the superset of hlsSources
181
181
pipe ( attrNames hlsSources ) [
182
- ( xs : map ( name : p . ${ name } or null ) xs )
182
+ ( xs : map ( name : if hpkgs ? name then p . ${ name } else null ) xs )
183
183
( xs : remove null xs )
184
184
] ;
185
185
buildInputs = [ gmp zlib ncurses capstone tracy ( gen-hls-changelogs hpkgs ) ]
You can’t perform that action at this time.
0 commit comments