Closed peti closed 9 years ago
The package requires Cabal version >= 1.20.
(You may compare https://hackage.haskell.org/package/Cabal-1.20.0.0/docs/Distribution-PackageDescription.html https://hackage.haskell.org/package/Cabal-1.18.1.6/docs/Distribution-PackageDescription.html)
I prepared a pull request that enables usage of Cabal < 1.20 at the cost of using CPP in Configuration.Utils.Setup
.
You may check out that branch. You can build with cabal
. When you compile Configuration.Utils.Setup
directly with ghc
you may redefine the macro MIN_VERSION_Cabal
(search for it in the file, the required change is document). Alternatively you may compile with:
ghc --make Setup.hs -D'MIN_VERSION_Cabal(x,y,z)=0'
The PR is here: https://github.com/alephcloud/hs-configuration-tools/pull/37
Hmm, we have a fairly sophisticated infrastructure in place for building Hackage in NixOS. Building branches, applying extra patches, etc. is something that's costly because it doesn't work automatically. If you'll add support for Cabal 1.18.x, then we'll be happy to distribute this package to all Nix users. For the time being, I've disabled the build in our distribution.
I plan to merge this PR as soon as all travis tests pass. Right now there is an bootstrap issue with the travis build that I have to resolve before I can do the merge.
Version 0.2.11 is supports Cabal-1.18 and hopefully fixes this issue.
The new version compiles Setup.hs
successfully. Thank you very much for your efforts! There remains one problem, though. I'll open a new issue for that in a moment.
An attempt to compile
ghc --make Setup.hs
gives me the following error: