all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bootstrapping GHC
@ 2013-09-30 10:49 Nikita Karetnikov
  2013-09-30 19:29 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Nikita Karetnikov @ 2013-09-30 10:49 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]

I’ve been thinking about GHC recently.  (A quick reminder: there are
binary versions [1], but we can’t use them because some binaries point
to ‘/bin/sh’.)  I believe the following should work for x86_64 and i686:

1. We fetch the source version [2] (manually), adjust ‘/bin/sh’, and
   build everything using a non-Guix GHC.

2. Then we copy the needed binaries somewhere.

3. After that we write a build recipe.  It should fetch the binary
   version of GHC [1], fix ‘/bin/sh’, and replace some binaries with the
   binaries from the second step.

Questions:

1. We’d have to host the binaries (step 2) somewhere and repeat the
   process whenever the hash of ‘/bin/sh’ changes.  How often will this
   happen?

2. Does Guix allow to fetch files from multiple places?  Is it possible
   to use ‘url-fetch’ plus a local file?  Could you show an example?

[1] http://www.haskell.org/ghc/dist/7.0.1/ghc-7.0.1-i386-unknown-linux.tar.bz2
[2] http://www.haskell.org/ghc/dist/7.0.1/ghc-7.0.1-src.tar.bz2

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-01  7:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30 10:49 Bootstrapping GHC Nikita Karetnikov
2013-09-30 19:29 ` Ludovic Courtès
2013-10-01  2:03   ` Nikita Karetnikov
2013-10-01  7:04     ` Ludovic Courtès

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.