Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
haskellPackages.haskell-language-server: Fix build
In preparation of the upcoming 0.6.0 release I wanted to fix hls. It introduces two new plugin packages, which are not on hackage yet. I remove apply-refact overrides, because current apply-refact versions are compatible with all ghcs we support, according to their changelog. I override more of the hls dependencies globally on the whole package set, to avoid a lot of duplicate compilations. And because @peti changed my mind about this being a good practice. hls now uses a released version of ghcide
- Loading branch information
Showing
11 changed files
with
95 additions
and
131 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
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
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
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
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
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
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
60 changes: 0 additions & 60 deletions
60
pkgs/development/tools/haskell/haskell-language-server/hls-ghcide.nix
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
pkgs/development/tools/haskell/haskell-language-server/hls-hlint-plugin.nix
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,26 @@ | ||
{ mkDerivation, aeson, apply-refact, base, binary, bytestring | ||
, containers, data-default, deepseq, Diff, directory, extra | ||
, fetchgit, filepath, ghc, ghc-lib, ghc-lib-parser-ex, ghcide | ||
, hashable, haskell-lsp, hlint, hls-plugin-api, hslogger, lens | ||
, regex-tdfa, shake, stdenv, temporary, text, transformers | ||
, unordered-containers | ||
}: | ||
mkDerivation { | ||
pname = "hls-hlint-plugin"; | ||
version = "0.1.0.0"; | ||
src = fetchgit { | ||
url = "https://github.com/haskell/haskell-language-server.git"; | ||
sha256 = "1w15p988a5h11fcp25lllaj7j78f35gzg5bixy1vs7ld0p6jj7n9"; | ||
rev = "8682517e9ff92caa35e727e28445896f97c61e8d"; | ||
fetchSubmodules = true; | ||
}; | ||
postUnpack = "sourceRoot+=/plugins/hls-hlint-plugin; echo source root reset to $sourceRoot"; | ||
libraryHaskellDepends = [ | ||
aeson apply-refact base binary bytestring containers data-default | ||
deepseq Diff directory extra filepath ghc ghc-lib ghc-lib-parser-ex | ||
ghcide hashable haskell-lsp hlint hls-plugin-api hslogger lens | ||
regex-tdfa shake temporary text transformers unordered-containers | ||
]; | ||
description = "Hlint integration plugin with Haskell Language Server"; | ||
license = stdenv.lib.licenses.asl20; | ||
} |
32 changes: 32 additions & 0 deletions
32
pkgs/development/tools/haskell/haskell-language-server/hls-tactics-plugin.nix
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,32 @@ | ||
{ mkDerivation, aeson, base, checkers, containers, deepseq | ||
, directory, extra, fetchgit, filepath, fingertree, generic-lens | ||
, ghc, ghc-boot-th, ghc-exactprint, ghc-source-gen, ghcide | ||
, haskell-lsp, hie-bios, hls-plugin-api, hspec, lens, mtl | ||
, QuickCheck, refinery, retrie, shake, stdenv, syb, text | ||
, transformers | ||
}: | ||
mkDerivation { | ||
pname = "hls-tactics-plugin"; | ||
version = "0.5.1.0"; | ||
src = fetchgit { | ||
url = "https://github.com/haskell/haskell-language-server.git"; | ||
sha256 = "1w15p988a5h11fcp25lllaj7j78f35gzg5bixy1vs7ld0p6jj7n9"; | ||
rev = "8682517e9ff92caa35e727e28445896f97c61e8d"; | ||
fetchSubmodules = true; | ||
}; | ||
postUnpack = "sourceRoot+=/plugins/tactics; echo source root reset to $sourceRoot"; | ||
libraryHaskellDepends = [ | ||
aeson base containers deepseq directory extra filepath fingertree | ||
generic-lens ghc ghc-boot-th ghc-exactprint ghc-source-gen ghcide | ||
haskell-lsp hls-plugin-api lens mtl refinery retrie shake syb text | ||
transformers | ||
]; | ||
testHaskellDepends = [ | ||
base checkers containers ghc hie-bios hls-plugin-api hspec mtl | ||
QuickCheck | ||
]; | ||
homepage = "https://github.com/isovector/hls-tactics-plugin#readme"; | ||
description = "LSP server for GHC"; | ||
license = "unknown"; | ||
hydraPlatforms = stdenv.lib.platforms.none; | ||
} |
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