haskellPackages.haskell-language-server: fix shared build

This commit is contained in:
sternenseemann 2022-02-08 12:30:46 +01:00
parent 550e3a38ba
commit 63e8fc415f

View File

@ -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