You could perhaps adapt and pare down the Haskell platform install for Mac. <div><br></div><div>In fact, there used to be Mac pkg builder in the ghc tree until a bit over a year ago <span></span><br><br>On Sunday, May 18, 2014, Bob Ippolito <<a href="mailto:bob@redivi.com">bob@redivi.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Have you made any progress on this? I have some domain experience here; I built most of the infrastructure for packaging Python apps on Mac, although it's been years since I've touched any of that. I would be happy to pitch in now that I have a little more time on my hands.</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 1, 2014 at 2:22 PM, Andrew Gibiansky <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','andrew.gibiansky@gmail.com');" target="_blank">andrew.gibiansky@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey all,<div><br></div><div>[This is an xpost from Reddit, where the <a href="http://www.reddit.com/r/haskell/comments/24hct1/packaging_haskell_platform_and_ghc_api/" target="_blank">post</a> seems not to be showing up for some reason...]<br>



<div><div><div>

<p>I'd like to package the Haskell Platform and GHC (for GHC API) 
together in one bundle in order to distribute it with a Mac app. 
(Specifically, I am working on a Mac app for <a href="https://github.com/gibiansky/IHaskell" target="_blank">IHaskell</a>, so beginners can download that to immediately get started playing with Haskell). </p>

<p>Does anyone have any experience with this? What's the easiest way to do this? My list of dependencies is fairly long:</p>

<ul>
<li>Haskell Platform (well, all packages in it)</li>
<li>A few other packages installed via cabal</li>
<li>A native library (libzmq); cabal packages depend on it</li>
<li>Functioning Python > 2.6ish</li>
<li>GHC API</li>
</ul>

<p>My current best idea is to package this all in a Virtualbox VM. I 
need to run a server that my Mac app client can use, so mount shared 
folders in the VM so that the VM can read/write to disk and expose some 
ports from the VM. If this is the best solution, what Linux distro would
 you suggest to use in the VM? I'd want something very lightweight.</p>

<p>I've also considered using Docker somehow, as IHaskell is already 
packaged with a Dockerfile. However, I'm not sure how I'd package docker
 so that its all doable via a single Mac app install. </p>

<p>Ideas? Suggestions?</p>

<p>Thanks! I know this isn't <em>directly</em> related to Haskell, but I'm hoping someone here has experience packaging Haskell applications.</p><span><font color="#888888"><p>-- Andrew Gibiansky</p>

</font></span></div></div></div></div></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','Haskell-Cafe@haskell.org');" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>
</blockquote></div>