Fix build with Cabal >= 2.4#18
Conversation
|
Hi. This is my attempt at fixing the build with Cabal >= 2.4. I tested with Cabal 3.6.2.0 and Cabal-3.0.1.0 (in another project). I could not get it to resolve dependencies for Cabal < 2.4 though... I could use some guidance here. |
|
I'll see if I get the same - and see what I have to override. |
|
Hmm, buildling with Nix I got: But works fine when I jailbreak with nix expression inside a haskell project: hgettext = lib.doJailbreak (self.callCabal2nix "hgettext" (builtins.fetchGit {
url = "https://github.com/avdv/hgettext.git";
ref = "e580db9d640505ace046ff0a99a34192a118c89c";
}) {});Looks like version bounds just need to be relaxed. |
e580db9 to
825f844
Compare
andreasabel
left a comment
There was a problem hiding this comment.
Thanks for this PR.
It builds fine for newer GHCs, but breaks build with older versions of Cabal. Please restore build with old versions.
a5e58f2 to
027e2a3
Compare
|
The error with GHC 8.2/4 is now: With GHC 7.4 - 8.0 it is: |
|
@andreasabel I think I have addressed the remaining problems, PTAL. |
Looks like it still fails. I suggest you test locally before pushing the next attempted fix. It is quite easy to install older GHCs (back to 8.0.2) via |
2fa3b32 to
86e6211
Compare
Sorry, that does not work on my system (NixOS). I just realized that I made a stupid off-by-one error and modified the wrong line / the wrong import statement... 😵💫 (error message said line 81 and I modified line 80) Fixed this again. And this time, I ran the Github actions on my own repo first: avdv#1 |
|
@andreasabel Is there anything left to do here? |
Thanks for fixing! I am on vacation right now, so please expect some delays... |
Thanks for merging. Have a nice holiday! |

Fixes #15