haskellPackages.haskell-language-server: 0.2.0 -> 0.3.0

While we are at it I:
* Disable tests, because I can‘t keep up with the speed hls introduces
more tests that cause trouble in nixpkgs.
* Fix builds of fourmolu and retrie
* Remove the wrapper for hls which is obsolete because of improved
package detection in hie-bios. And added a note that this can be removed
for ghcide soon, too.
This commit is contained in:
Malte Brandy
2020-08-16 13:57:18 +02:00
parent 00a9d3f261
commit af017c431a
8 changed files with 88 additions and 73 deletions
@@ -1323,41 +1323,22 @@ self: super: {
# https://github.com/ennocramer/monad-dijkstra/issues/4
monad-dijkstra = dontCheck (doJailbreak super.monad-dijkstra);
# haskell-language-server uses its own fork of ghcide
# Test disabled: it seems to freeze (is it just that it takes a long time ?)
hls-ghcide =
dontCheck ((
overrideCabal super.hls-ghcide
(old: {
# The integration test run by lsp-test requires the executable to be in the PATH
preCheck = ''
export PATH=$PATH:dist/build/ghcide
'';
})).override {
# we are faster than stack here
hie-bios = dontCheck self.hie-bios_0_6_2;
lsp-test = dontCheck self.lsp-test_0_11_0_4;
});
haskell-language-server = (overrideCabal super.haskell-language-server
(old: {
# The integration test run by lsp-test requires the executable to be in the PATH
preCheck = ''
export PATH=$PATH:dist/build/haskell-language-server
'';
# The wrapper test does not work for now.
testTarget = "func-test";
# test needs the git tool
testToolDepends = old.testToolDepends
++ [ pkgs.git ];
})).override {
# use a fork of ghcide
ghcide = self.hls-ghcide;
# we are faster than stack here
hie-bios = dontCheck self.hie-bios_0_6_2;
lsp-test = dontCheck self.lsp-test_0_11_0_4;
};
fourmolu = super.fourmolu.overrideScope (self: super: {
aeson = dontCheck self.aeson_1_5_2_0;
});
# Tests disabled because they access /home
haskell-language-server = (dontCheck super.haskell-language-server).overrideScope (self: super: {
# haskell-language-server uses its own fork of ghcide
# Test disabled: it seems to freeze (is it just that it takes a long time ?)
ghcide = dontCheck super.hls-ghcide;
# we are faster than stack here
hie-bios = dontCheck self.hie-bios_0_6_2;
lsp-test = dontCheck self.lsp-test_0_11_0_4;
# fourmolu cant compile with an older aeson
aeson = dontCheck super.aeson_1_5_2_0;
# brittany has an aeson upper bound of 1.5
brittany = doJailbreak super.brittany;
});
# https://github.com/kowainik/policeman/issues/57
policeman = doJailbreak super.policeman;
@@ -2540,6 +2540,7 @@ default-package-overrides:
extra-packages:
- aeson < 0.8 # newer versions don't work with GHC 7.6.x or earlier
- aeson == 1.5.2.0 # needed for fourmolu 0.1.0.0, but 1.5.3 is to new for our purpose
- aeson-pretty < 0.8 # required by elm compiler
- Agda == 2.6.1 # allows the agdaPackage set to be fixed to this version so that it won't break when another agda version is released.
- ansi-terminal == 0.10.3 # required by cabal-plan, and policeman in ghc-8.8.x
@@ -5074,7 +5075,6 @@ broken-packages:
- foscam-filename
- foscam-sort
- Foster
- fourmolu
- fpco-api
- fplll
- fpnla-examples
@@ -9165,7 +9165,6 @@ broken-packages:
- rethinkdb-client-driver
- rethinkdb-model
- rethinkdb-wereHamster
- retrie
- retryer
- reverse-geocoding
- reversi
@@ -767,4 +767,8 @@ self: super: builtins.intersectAttrs super {
postgresql-libpq-notify = dontCheck super.postgresql-libpq-notify;
postgresql-pure = dontCheck super.postgresql-pure;
retrie = overrideCabal super.retrie (drv: {
testToolDepends = [ pkgs.git pkgs.mercurial ];
});
}
+33 -4
View File
@@ -23913,6 +23913,39 @@ self: {
license = stdenv.lib.licenses.bsd3;
}) {};
"aeson_1_5_2_0" = callPackage
({ mkDerivation, attoparsec, base, base-compat
, base-compat-batteries, base-orphans, base16-bytestring
, bytestring, containers, deepseq, Diff, directory, dlist, filepath
, generic-deriving, ghc-prim, hashable, hashable-time
, integer-logarithms, primitive, QuickCheck, quickcheck-instances
, scientific, tagged, tasty, tasty-golden, tasty-hunit
, tasty-quickcheck, template-haskell, text, th-abstraction, these
, time, time-compat, unordered-containers, uuid-types, vector
}:
mkDerivation {
pname = "aeson";
version = "1.5.2.0";
sha256 = "0awk3dss79mmcxpy147mijnd9icvlnm77bq248ibbbzx9y99hdfd";
libraryHaskellDepends = [
attoparsec base base-compat-batteries bytestring containers deepseq
dlist ghc-prim hashable primitive scientific tagged
template-haskell text th-abstraction these time time-compat
unordered-containers uuid-types vector
];
testHaskellDepends = [
attoparsec base base-compat base-orphans base16-bytestring
bytestring containers Diff directory dlist filepath
generic-deriving ghc-prim hashable hashable-time integer-logarithms
QuickCheck quickcheck-instances scientific tagged tasty
tasty-golden tasty-hunit tasty-quickcheck template-haskell text
these time time-compat unordered-containers uuid-types vector
];
description = "Fast JSON parsing and encoding";
license = stdenv.lib.licenses.bsd3;
hydraPlatforms = stdenv.lib.platforms.none;
}) {};
"aeson_1_5_3_0" = callPackage
({ mkDerivation, attoparsec, base, base-compat
, base-compat-batteries, base-orphans, base16-bytestring
@@ -92164,8 +92197,6 @@ self: {
testToolDepends = [ hspec-discover ];
description = "A formatter for Haskell source code";
license = stdenv.lib.licenses.bsd3;
hydraPlatforms = stdenv.lib.platforms.none;
broken = true;
}) {};
"fpco-api" = callPackage
@@ -215815,8 +215846,6 @@ self: {
];
description = "A powerful, easy-to-use codemodding tool for Haskell";
license = stdenv.lib.licenses.mit;
hydraPlatforms = stdenv.lib.platforms.none;
broken = true;
}) {};
"retry" = callPackage
@@ -105,8 +105,9 @@ symlinkJoin {
--set "NIX_${ghcCommandCaps}_LIBDIR" "${libDir}"
fi
# ghcide and haskell-language-server do package discovery without calling our ghc wrapper.
for prg in ghcide haskell-language-server; do
# ghcide 0.2.0 does package discovery without calling our ghc wrapper.
# 2020-08-16 We can most likely remove this workaround as soon as we build ghcide with a newer hie-bios (currently we use 0.5.1 from stack)
for prg in ghcide; do
if [[ -x "$out/bin/$prg" ]]; then
wrapProgram $out/bin/$prg \
--set "NIX_${ghcCommandCaps}" "$out/bin/${ghcCommand}" \