[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] profiles: Generate GHC's package database cache.
From: |
Federico Beffa |
Subject: |
Re: [PATCH] profiles: Generate GHC's package database cache. |
Date: |
Sun, 5 Apr 2015 10:16:21 +0200 |
On Sun, Apr 5, 2015 at 7:21 AM, Mark H Weaver <address@hidden> 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
> profiles that don't contain any Haskell packages, especially since it
> involves trusting the upstream binaries from GHC.
Good point. Would this check be satisfactory for you?
;; 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
#:modules '((guix build utils))
#:local-build? #t)
(gexp->derivation "ghc-package-cache" #~(mkdir #$output))))
>
> What if I want to use Hugs instead, or some other Haskell implementation
> that is capable of being bootstrapped from source code. Is GHC the only
> tool that can do this job?
As far as I know, the library database is compiler specific. Here we
are handling GHC only. But, if you know better, don't hesitate to make
a concrete suggestion.
Regards,
Fede
- [PATCH] profiles: Generate GHC's package database cache., Federico Beffa, 2015/04/04
- Re: [PATCH] profiles: Generate GHC's package database cache., Mark H Weaver, 2015/04/05
- Re: [PATCH] profiles: Generate GHC's package database cache.,
Federico Beffa <=
- Re: [PATCH] profiles: Generate GHC's package database cache., Mark H Weaver, 2015/04/05
- Re: [PATCH] profiles: Generate GHC's package database cache., Federico Beffa, 2015/04/05
- Re: [PATCH] profiles: Generate GHC's package database cache., Federico Beffa, 2015/04/06
- Re: [PATCH] profiles: Generate GHC's package database cache., Mark H Weaver, 2015/04/06
- Re: [PATCH] profiles: Generate GHC's package database cache., Federico Beffa, 2015/04/06
- Re: [PATCH] profiles: Generate GHC's package database cache., Ludovic Courtès, 2015/04/06
- Re: [PATCH] profiles: Generate GHC's package database cache., Alexandre Héaumé, 2015/04/10
Re: [PATCH] profiles: Generate GHC's package database cache., Ludovic Courtès, 2015/04/05