<div dir="ltr">Thanks for all the responses.<div><br></div><div>@Ivan</div><div>I couldn't yet find an option in stack to point to local source tarballs. Custom snapshots at least currently only support Hackage packages and that was the closest I found.</div><div><br></div><div>I briefly looked into `stack unpack <package>`, that might indeed provide a workable solution. Although options other than the list of packages would have to be duplicated between my "normal" stack.yaml and the one I use to enable offline compilation.</div><div><br></div><div>@Tobias</div><div>I already thought about that, yackage sounds like a package that would help implement it. Not sure if I like that option very much though.</div><div><br></div><div>@David</div><div>Not sure if I get your proposal.</div><div>Running `stack build --prefetch --dry-run` lists my local packages as "Would build". How would I get source tarballs of my dependencies and how would I build them on an offline machine?</div><div><br></div><div>Best</div><div>Jan</div></div><br><div class="gmail_quote"><div dir="ltr">David Turner <<a href="mailto:dct25-561bs@mythic-beasts.com">dct25-561bs@mythic-beasts.com</a>> schrieb am Do., 24. Nov. 2016 um 10:13 Uhr:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Does<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"> stack build --prefetch --dry-run</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">get close to what you want? That seems to download all the necessary packages, and by using stack you get the ability to share compiled dependencies between packages.</div></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Cheers,</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">David</div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg">On 24 November 2016 at 06:57, Jan von Löwenstein <span dir="ltr" class="gmail_msg"><<a href="mailto:jan.loewenstein@gmail.com" class="gmail_msg" target="_blank">jan.loewenstein@gmail.com</a>></span> wrote:<br class="gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Consider the following use case:</div><div class="gmail_msg">I have to ship a Haskell application as source, bundled with its dependencies and a script that can produce the binary on a machine without internet connectivity.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Is that possible with Stack or Cabal?</div><div class="gmail_msg">Any pointers would be much appreciated.</div><div class="gmail_msg"> </div><div class="gmail_msg">Ideally I would like to build each dependency package individually. That way I could cache results per Haskell package and don't need to rebuild dependencies until they actually change.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Best</div><span class="m_-3972223181841155052HOEnZb gmail_msg"><font color="#888888" class="gmail_msg"><div class="gmail_msg">Jan</div></font></span></div>
<br class="gmail_msg"></blockquote></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br class="gmail_msg">
Haskell-Cafe mailing list<br class="gmail_msg">
To (un)subscribe, modify options or view archives go to:<br class="gmail_msg">
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" class="gmail_msg" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br class="gmail_msg">
Only members subscribed via the mailman list are allowed to post.<br class="gmail_msg"></blockquote></div></div></blockquote></div>