finding the dependecies of cabal packages

Isaac Jones ijones at syntaxpolice.org
Thu Jul 28 16:39:45 EDT 2005


Brian Smith <brianlsmith at gmail.com> writes:

> On 7/27/05, Duncan Coutts <duncan.coutts at worcester.oxford.ac.uk> wrote:
>> In particular the ebuild must list all the dependencies of the package.
>> Required Haskell libraries are listed in the "build-depends:" field in
>> the cabal file, so that one is easy. However it is not clear how to find
>> out the build tools that the cabal package requires.
>
> First of all, you would  have to parse the Setup.lhs/Setup.hs file to
> determine which build infrastructure is being used, whether any hooks
> are being used, etc. Assuming that the build infrastructure is
> "Simple" and there are no hooks being used, then you have choices:

(snip)

That's a little over-the-top; maybe that's your point, though I don't
see any problem with adding a new field for tools, not just packages.
I think that would solve Duncan's problem.

peace,

  isaac


More information about the Libraries mailing list