about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-02-08 12:30:46 +0100
committersternenseemann <sternenseemann@systemli.org>2022-02-08 12:30:46 +0100
commit63e8fc415fc522979b9f6824c756b7b79e75b861 (patch)
treebbab6dcfa93e5532be19b510df66bec19d4123da /pkgs/development/haskell-modules
parent550e3a38bad15a8d34b822e751c5396dcb0e0eef (diff)
downloadnixlib-63e8fc415fc522979b9f6824c756b7b79e75b861.tar
nixlib-63e8fc415fc522979b9f6824c756b7b79e75b861.tar.gz
nixlib-63e8fc415fc522979b9f6824c756b7b79e75b861.tar.bz2
nixlib-63e8fc415fc522979b9f6824c756b7b79e75b861.tar.lz
nixlib-63e8fc415fc522979b9f6824c756b7b79e75b861.tar.xz
nixlib-63e8fc415fc522979b9f6824c756b7b79e75b861.tar.zst
nixlib-63e8fc415fc522979b9f6824c756b7b79e75b861.zip
haskellPackages.haskell-language-server: fix shared build
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-nix.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix
index 7e51968fa451..f51d9378de6d 100644
--- a/pkgs/development/haskell-modules/configuration-nix.nix
+++ b/pkgs/development/haskell-modules/configuration-nix.nix
@@ -711,6 +711,10 @@ self: super: builtins.intersectAttrs super {
   } super.nix-output-monitor;
 
   haskell-language-server = overrideCabal (drv: {
+    # starting with 1.6.1.1 haskell-language-server wants to be linked dynamically
+    # by default. Unless we reflect this in the generic builder, GHC is going to
+    # produce some illegal references to /build/.
+    enableSharedExecutables = true;
     postInstall = "ln -s $out/bin/haskell-language-server $out/bin/haskell-language-server-${self.ghc.version}";
     testToolDepends = [ self.cabal-install pkgs.git ];
     testTarget = "func-test"; # wrapper test accesses internet