cabal-fmt: do not override Cabal-syntax

cabal-fmt now builds well without the override for `Cabal-syntax` ([but
with jailbreaking for other dependencies][cabal-fmt#98]) on GHC versions
9.6 and up (and possibly on earlier versions; I did not test it).

[cabal-fmt#98]: https://github.com/phadej/cabal-fmt/issues/98
This commit is contained in:
Samir Talwar
2026-05-22 12:02:41 +02:00
parent ec93f31400
commit 44619b7c78
@@ -2051,12 +2051,8 @@ with haskellLib;
# The shipped Setup.hs file is broken.
csv = overrideCabal (drv: { preCompileBuildDriver = "rm Setup.hs"; }) super.csv;
cabal-fmt = doJailbreak (
super.cabal-fmt.override {
# Needs newer Cabal-syntax version.
Cabal-syntax = self.Cabal-syntax_3_10_3_0;
}
);
# https://github.com/phadej/cabal-fmt/issues/98
cabal-fmt = doJailbreak super.cabal-fmt;
# Pick bound changes from development branch, same commit also adds support for Cabal >= 3.14
glirc = lib.pipe super.glirc [