all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Soo <jsoo1@asu.edu>
To: Timothy Sample <samplet@ngyro.com>
Cc: guix-devel@gnu.org
Subject: Re: Haskell dependencies for custom cabal builds
Date: Tue, 12 Feb 2019 08:50:32 -0800	[thread overview]
Message-ID: <6E48CD3A-9511-4855-8C0D-DC7574546939@asu.edu> (raw)
In-Reply-To: <87r2cd9ekl.fsf@ngyro.com>

Hi there,

I did a little digging this morning and it seems like runhaskell is probably deprecated in favor of runghc. Do we expect anyone to be using hugs or jhc?  Runghc also supports ghc flags. I still need to do some more research here but the Haskell configure phase deliberately unsets GHC_PACKAGE_PATH. I assume it does this because runhaskell supports many Haskell compilers. If custom cabal builds are rare, I would suspect that non-ghc builds are even rarer. Would it be possible to replace runhaskell with runghc? Or parameterize the command?

Thanks,

John

> On Feb 12, 2019, at 8:06 AM, Timothy Sample <samplet@ngyro.com> wrote:
> 
> Hi John,
> 
> John Soo <jsoo1@asu.edu> writes:
> 
>> I’ll check out git-annex as a start. Custom Cabal builds would be a
>> nice feature to add to the haskell-build-system. Would it be
>> sufficient to add some extra argument to the build system?
> 
> At this point, I don’t know what the argument would do.  :)
> 
> The solution I came up with for git-annex only works for git-annex.  I
> had to carefully read the build code, and carve out certain parts so
> that they could run in different environments.  It is not something that
> could be enabled by an argument.
> 
> The only idea I have would be switching from using “runhaskell Setup.hs”
> to using the “cabal” executable.  Hopefully, Cabal would set up the GHC
> package database before running the custom code.  If it worked, it could
> be enabled by a build-system argument.  I’m definitely just guessing
> here, though.  If you wanted to test this, you could copy out code from
> “guix/build/haskell-build-system.scm” into custom phases in your
> package.  If it proves useful, we could adapt it into the build system.
> 
> So far, custom builds have been extremely rare, so these issues are not
> very well explored.
> 
> 
> -- Tim

  reply	other threads:[~2019-02-12 16:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-11 16:37 Haskell dependencies for custom cabal builds John Soo
2019-02-11 20:19 ` Timothy Sample
2019-02-11 21:56   ` John Soo
2019-02-12 16:06     ` Timothy Sample
2019-02-12 16:50       ` John Soo [this message]
2019-02-12 19:18         ` Timothy Sample
2019-02-12 19:21         ` Timothy Sample
2019-02-12 19:37           ` John Soo
2019-02-12 19:44           ` Marius Bakke
2019-02-13  0:02             ` John Soo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6E48CD3A-9511-4855-8C0D-DC7574546939@asu.edu \
    --to=jsoo1@asu.edu \
    --cc=guix-devel@gnu.org \
    --cc=samplet@ngyro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.