Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-15 Thread Ludovic Courtès
Federico Beffa skribis: > On top of the mentioned cases above, there are many programs making use > of caches. Some are: > > * GLib's IO modules normally use a cache file 'giomodule.cache'. We set > the env. var. GIO_EXTRA_MODULES, but it's use is explicitly > discouraged by the project. > >

Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-06 Thread Ludovic Courtès
Federico Beffa skribis: > On Mon, Apr 6, 2015 at 10:24 AM, Mark H Weaver wrote: >> Is the package database cache used by anything other than GHC? If the >> user doesn't have GHC installed, what would consult the GHC package >> database cache? > > Maybe a GHC not in Guix? Not, sure if it would w

Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-06 Thread Federico Beffa
On Mon, Apr 6, 2015 at 10:24 AM, Mark H Weaver wrote: > Is the package database cache used by anything other than GHC? If the > user doesn't have GHC installed, what would consult the GHC package > database cache? Maybe a GHC not in Guix? Not, sure if it would work. Fede

Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-06 Thread Mark H Weaver
Federico Beffa writes: > On Sun, Apr 5, 2015 at 10:33 PM, Federico Beffa wrote: >> On Sun, Apr 5, 2015 at 10:24 PM, Mark H Weaver wrote: ;; Don't depend on GHC when there's nothing to do. (if (any (cut string-prefix? "ghc" <>) (map manifest-entry-name (manifes

Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-06 Thread Federico Beffa
On Sun, Apr 5, 2015 at 10:33 PM, Federico Beffa wrote: > On Sun, Apr 5, 2015 at 10:24 PM, Mark H Weaver wrote: >>> >>> ;; Don't depend on GHC when there's nothing to do. >>> (if (any (cut string-prefix? "ghc" <>) >>>(map manifest-entry-name (manifest-entries manifest))) >>>

Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-05 Thread Federico Beffa
On Sun, Apr 5, 2015 at 10:24 PM, Mark H Weaver wrote: >> >> ;; Don't depend on GHC when there's nothing to do. >> (if (any (cut string-prefix? "ghc" <>) >>(map manifest-entry-name (manifest-entries manifest))) >> (gexp->derivation "ghc-package-cache" build >>

Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-05 Thread Federico Beffa
l...@gnu.org (Ludovic Courtès) writes: > Eventually we could think of more sophisticated way to determine whether > to trigger a given “hook” (info-dir, ca-certificates, ghc.) Perhaps > this ‘ghc-package-cache-file’ procedure could be added as an > ‘environment-hook’ field of the ghc package and

Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-05 Thread Mark H Weaver
Federico Beffa writes: > On Sun, Apr 5, 2015 at 7:21 AM, Mark H Weaver wrote: >> I believe this will require GHC to build *any* non-empty profile. Since >> GHC is only available on Intel platforms, this will break profile >> building on MIPS and ARM. >> >> Even on Intel platforms, I don't want

Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-05 Thread Ludovic Courtès
Federico Beffa skribis: > From dfe3b875267731006512b8a9803aaa56f07db12e Mon Sep 17 00:00:00 2001 > From: Federico Beffa > Date: Sat, 4 Apr 2015 22:51:13 +0200 > Subject: [PATCH] profiles: Generate GHC's package database cache. > > * guix/profiles.scm (ghc-package-cac

Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-05 Thread Federico Beffa
On Sun, Apr 5, 2015 at 7:21 AM, Mark H Weaver wrote: > I believe this will require GHC to build *any* non-empty profile. Since > GHC is only available on Intel platforms, this will break profile > building on MIPS and ARM. > > Even on Intel platforms, I don't want to have to install GHC to build

Re: [PATCH] profiles: Generate GHC's package database cache.

2015-04-04 Thread Mark H Weaver
Federico Beffa writes: > From dfe3b875267731006512b8a9803aaa56f07db12e Mon Sep 17 00:00:00 2001 > From: Federico Beffa > Date: Sat, 4 Apr 2015 22:51:13 +0200 > Subject: [PATCH] profiles: Generate GHC's package database cache. [...] > +(define (ghc-package-cache-file mani

[PATCH] profiles: Generate GHC's package database cache.

2015-04-04 Thread Federico Beffa
As discussed on the 'haskell-build-system' thread. Regards, Fede From dfe3b875267731006512b8a9803aaa56f07db12e Mon Sep 17 00:00:00 2001 From: Federico Beffa Date: Sat, 4 Apr 2015 22:51:13 +0200 Subject: [PATCH] profiles: Generate GHC's package database cache. * guix/profiles.s