Skip to content
This repository was archived by the owner on Feb 15, 2019. It is now read-only.

Support add-source #25

Closed
lukerandall opened this issue Jun 19, 2014 · 5 comments
Closed

Support add-source #25

lukerandall opened this issue Jun 19, 2014 · 5 comments
Assignees

Comments

@lukerandall
Copy link

We use a number of packages not on hackage, and would appreciate being able to use add-source to point to (for eg) a GitHub repo to add it as a source.

@rehno-lindeque
Copy link

This is by no means a solution, but see also #9

@mietek
Copy link
Owner

mietek commented Jun 19, 2014

Thanks. This is planned as part of #4. See also #26 for a more concrete description.

@mietek mietek closed this as completed Oct 8, 2014
@mietek mietek reopened this Oct 22, 2014
@mietek mietek self-assigned this Oct 22, 2014
@mietek
Copy link
Owner

mietek commented Oct 22, 2014

Support for declaring sandbox sources is pending.

@mietek mietek added this to the 1.0 milestone Nov 11, 2014
@mietek
Copy link
Owner

mietek commented Nov 11, 2014

Declaring sandbox sources is now supported. You will need:

  1. A .halcyon/sandbox-sources magic file:

    [email protected]:circuithub/circuithub-entities#0.0.28
    [email protected]:circuithub/circuithub-prelude#0.0.4
    [email protected]:circuithub/comparable-key
    [email protected]:circuithub/octopart#0.0.3
    [email protected]:circuithub/persistent-chunked
    [email protected]:circuithub/persistent-mysql-extra
    
  2. A BUILDPACK_SSH_PRIVATE_KEY config var, for authenticating with GitHub:

    heroku config:set "BUILDPACK_SSH_PRIVATE_KEY=$( <~/.ssh/buildpack-ssh-private-key )"
    

As an example, my fork of tryhaskell now declares sandbox sources in this fashion, but using a public (HTTPS) git URL.

@mietek mietek closed this as completed Nov 11, 2014
@mietek
Copy link
Owner

mietek commented Nov 11, 2014

A more advanced, closed-source example, circuithub-api uses as many as 6 sandbox sources, plus additional dependencies, which cabal-install alone is unable to handle. (haskell/cabal#220, haskell/cabal#779). This includes OS libraries, such as libpcre, and executable-only Cabal packages, such as alex.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants