[Haskell-cafe] ANN: custom-hackage
mail at nh2.me
Mon Jun 17 05:32:48 CEST 2013
thanks for this! Please don't be reluctant with this, it is very
I have updated the script to use the paths as you described, and it
seems to work quite well. The fact that all tars land under package/
even makes is easier to use.
It would be great if you could give it another try.
On 17/06/13 02:42, Albert Y. C. Lai wrote:
> On 13-06-13 11:09 AM, Niklas Hambüchen wrote:
>> An (almost trivial) script to generate 00-index.tar.gz which is
>> necessary to run your own `remote-repo`.
> I write the following critique with much reluctance, since I will be
> saying a lot of "this cannot possibly work, here is why", but I would
> also like to think that it had worked for you before you published it.
> Assume the remote-repo line goes like
> remote-repo: custom:http://127.0.0.1:8080/packages/archive
> And assume it has just one package, formula-1.1
> Then your scheme uses this layout:
> However, cabal-install expects this layout:
> I know this by both reading cabal-install source code and empirical
> tests, both 0.14 and 1.16.
> I have a working example at
> Lastly, I want to emphasize these points:
> The layout is different from Hackage's; cabal-install source code
> hardcodes treating Hackage differently. Yes, it goes out of its way to
> detect "http://hackage.haskell.org/packages/archive" and do a different
> thing. Mimicking Hackage is futile, unless you go out of your way to
> also mimic the host name "hackage.haskell.org".
> And the layout is different from local-repo's; local-repo's is in fact
> close to Hackage's.
> See my
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe