In Setup you have:
["module Version where"
,"builddeps, version, context :: String"
,"version = \"" ++ version ++ " (" ++ state ++ ")\""
,"builddeps = " ++ show ( formatdeps (externalPackageDeps lbi))
,"context = " ++ case ctx of
Just x -> show x
Nothing -> show "context not available"
The use of `externalPackageDeps` here is bad juju. It is the deps for ALL
components, including the test suite. I doubt you want to build Darcs with the test
suite dependencies in build deps.
If it's just library deps you care about here (which is probably the case), you can
use `getComponentLocalBuildInfo` to grab the `CLibName` component, and then read
the deps off that.
Thanks for the spotting that! I think the list is just
informational, to be used in the output of 'darcs --exact-version',
but it would still be better not to include the test suite
dependencies. In theory we would want the executable dependencies
Looking at the ouput, I also notice it's only the direct
dependencies. Ideally we'd find a way to include the indirect