about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
diff options
context:
space:
mode:
authorMalte Brandy <malte.brandy@maralorn.de>2022-02-21 00:10:35 +0100
committerMalte Brandy <malte.brandy@maralorn.de>2022-02-21 00:59:59 +0100
commit77b623d5a2b4990e00f0e781beb5a1fb1f7265e7 (patch)
treeafeb2a402e29de49878d2caedf5f1bdb4420cb90 /pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
parent38b125a59dbf77ba77dbbbd737434b1b71448bf7 (diff)
downloadnixlib-77b623d5a2b4990e00f0e781beb5a1fb1f7265e7.tar
nixlib-77b623d5a2b4990e00f0e781beb5a1fb1f7265e7.tar.gz
nixlib-77b623d5a2b4990e00f0e781beb5a1fb1f7265e7.tar.bz2
nixlib-77b623d5a2b4990e00f0e781beb5a1fb1f7265e7.tar.lz
nixlib-77b623d5a2b4990e00f0e781beb5a1fb1f7265e7.tar.xz
nixlib-77b623d5a2b4990e00f0e781beb5a1fb1f7265e7.tar.zst
nixlib-77b623d5a2b4990e00f0e781beb5a1fb1f7265e7.zip
haskell-language-server: Fix build
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
index 94e9a32ce05a..9257ebb1a308 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
@@ -121,8 +121,7 @@ self: super: {
   # additional dependency to compile successfully.
   ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser super.ghc-lib-parser-ex;
 
-  # Older compilers need the latest ghc-lib to build this package.
-  hls-hlint-plugin = addBuildDepend self.ghc-lib super.hls-hlint-plugin;
+  ormolu = super.ormolu_0_2_0_0;
 
   # vector 0.12.2 indroduced doctest checks that don‘t work on older compilers
   vector = dontCheck super.vector;
@@ -130,4 +129,17 @@ self: super: {
   ghc-api-compat = doDistribute super.ghc-api-compat_8_6;
 
   mime-string = disableOptimization super.mime-string;
+
+  haskell-language-server = appendConfigureFlags [
+      "-f-fourmolu"
+      "-f-stylishhaskell"
+      "-f-brittany"
+      "-f-hlint"
+    ]
+  (super.haskell-language-server.override {
+    # Not buildable on 8.8
+    hls-fourmolu-plugin = null;
+    # https://github.com/haskell/haskell-language-server/issues/2728
+    hls-hlint-plugin = null;
+  });
 }