haskellPackages.readline: fix Setup.hs to work with Cabal 3

See https://github.com/NixOS/nixpkgs/pull/111985/ for previous discussion

(cherry picked from commit b950ecaf3a49662ba92e6c978aa472155eddd47f)
This commit is contained in:
Samuel Rivas
2021-08-16 12:12:46 +02:00
committed by sterni
parent 5d89a1188e
commit b3743e6325
4 changed files with 12 additions and 3 deletions
@@ -1583,6 +1583,10 @@ self: super: {
addBuildDepend (unmarkBroken super.hercules-ci-cli) super.hercules-ci-optparse-applicative
);
# Readline uses Distribution.Simple from Cabal 2, in a way that is not
# compatible with Cabal 3. No upstream repository found so far
readline = appendPatch super.readline ./patches/readline-fix-for-cabal-3.patch;
# 2020-12-05: http-client is fixed on too old version
essence-of-live-coding-warp = doJailbreak (super.essence-of-live-coding-warp.override {
http-client = self.http-client_0_7_8;