haskell.packages.ghc92.haskell-language-server: Fix build

This commit is contained in:
maralorn 2024-07-07 15:04:05 +02:00
parent a69a71913c
commit 03da332d60
No known key found for this signature in database

View File

@ -70,16 +70,6 @@ self: super: {
(disableCabalFlag "fourmolu")
(disableCabalFlag "ormolu")
(disableCabalFlag "stylishHaskell")
(overrideCabal (drv: {
# Disabling the build flags isn't enough: `Setup configure` still configures
# every component for building and complains about missing dependencies.
# Thus we have to mark the undesired components as non-buildable.
postPatch = drv.postPatch or "" + ''
for lib in hls-ormolu-plugin hls-fourmolu-plugin; do
sed -i "/^library $lib/a\ buildable: False" haskell-language-server.cabal
done
'';
}))
(d: d.override {
ormolu = null;
fourmolu = null;