mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-09-11 08:45:35 +03:00
Fix compat. with ghc8101 and add more packages
- Removing packages that fail to build with ghc8101 (haskell-lsp due to statistics) - Adding more prebuilt packages to further leverage the Nix cache
This commit is contained in:
parent
c07a038e69
commit
93844f99b3
41
shell.nix
41
shell.nix
@ -8,30 +8,65 @@ let haskellPackagesForProject = if compiler == "default"
|
||||
then haskellPackages.ghcWithPackages
|
||||
else haskell.packages.${compiler}.ghcWithPackages;
|
||||
|
||||
# these packages fail to build with ghc8101
|
||||
extraPackages = p: if compiler == "ghc8101"
|
||||
then []
|
||||
else [p.haskell-lsp p.lsp-test];
|
||||
|
||||
compilerWithPackages = haskellPackagesForProject(p:
|
||||
with p;
|
||||
[ aeson
|
||||
alex
|
||||
async
|
||||
base16-bytestring
|
||||
blaze-builder
|
||||
blaze-markup
|
||||
conduit-extra
|
||||
conduit-parse
|
||||
cryptohash-sha1
|
||||
data-default
|
||||
data-default-class
|
||||
data-default-instances-containers
|
||||
data-default-instances-dlist
|
||||
data-default-instances-old-locale
|
||||
Diff
|
||||
extra
|
||||
floskell
|
||||
fuzzy
|
||||
generic-deriving
|
||||
gitrev
|
||||
haskell-lsp
|
||||
Glob
|
||||
happy
|
||||
haskell-src-exts
|
||||
hslogger
|
||||
hspec
|
||||
lens
|
||||
network
|
||||
optparse-simple
|
||||
prettyprinter
|
||||
QuickCheck
|
||||
parsers
|
||||
parser-combinators
|
||||
prettyprinter
|
||||
prettyprinter-ansi-terminal
|
||||
primes
|
||||
psqueues
|
||||
regex-tdfa
|
||||
rope-utf16-splay
|
||||
safe-exceptions
|
||||
shake
|
||||
sorted-list
|
||||
tasty
|
||||
tasty-golden
|
||||
tasty-hunit
|
||||
tasty-rerun
|
||||
temporary
|
||||
text
|
||||
typed-process
|
||||
unordered-containers
|
||||
]);
|
||||
xml
|
||||
yaml
|
||||
zlib
|
||||
] ++ extraPackages p);
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "haskell-language-server";
|
||||
|
Loading…
Reference in New Issue
Block a user