Re: [PATCH] build-system: Add haskell-build-system.

2015-04-02 Thread Ludovic Courtès
Federico Beffa skribis: > On Mon, Mar 30, 2015 at 10:16 AM, Ludovic Courtès wrote: >> Handling it during profile creation, as you suggest, and avoiding the >> use of a wrapper sounds preferable to me. > > OK, lets go for that. Sometime we’ll have to make info-dir + cert + ghc stuff in (guix pro

Re: [PATCH] build-system: Add haskell-build-system.

2015-03-30 Thread Federico Beffa
On Mon, Mar 30, 2015 at 10:16 AM, Ludovic Courtès wrote: > Handling it during profile creation, as you suggest, and avoiding the > use of a wrapper sounds preferable to me. OK, lets go for that. Please find attached an updated patch taking into account all of your earlier comments. In the mean

Re: [PATCH] build-system: Add haskell-build-system.

2015-03-30 Thread Ludovic Courtès
Federico Beffa skribis: > Having never used nixpkgs, I'm not sure how they handle the database > in profiles. Would you have a pointer to a "standard" mechanism (like > how they handle 'dir' files, icon caches, ...). AFAIK there’s no general mechanism for that. For GHC, this is handled by addin

Re: [PATCH] build-system: Add haskell-build-system.

2015-03-29 Thread Federico Beffa
On Sun, Mar 29, 2015 at 4:00 PM, Ricardo Wurmus wrote: > > Ludovic Courtès writes: > >> Isn’t there any environment variable akin to LD_LIBRARY_PATH or >> GUILE_LOAD_PATH? That would greatly simplify things. > > There is the GHC_PACKAGE_PATH environment variable which is supposed to > be a colon-

Re: [PATCH] build-system: Add haskell-build-system.

2015-03-29 Thread Ricardo Wurmus
Ludovic Courtès writes: > Federico Beffa skribis: > >> Please note that installed libraries need to be registered in a >> compiler specific database. The database consists of a directory with >> a configuration file for each library and *a single binary cache* >> file. To avoid clashes in profil

Re: [PATCH] build-system: Add haskell-build-system.

2015-03-29 Thread Ludovic Courtès
ing everything like we do for Python modules, Perl modules, etc.) > From b8c6b21e01c6eb7d9c5c7e9ec28a4ac7d12b0628 Mon Sep 17 00:00:00 2001 > From: Federico Beffa > Date: Fri, 27 Mar 2015 09:36:56 +0100 > Subject: [PATCH] build-system: Add haskell-build-system. > > * guix/buil

[PATCH] build-system: Add haskell-build-system.

2015-03-27 Thread Federico Beffa
haddock's derivation created with this build system. Regards, Fede From b8c6b21e01c6eb7d9c5c7e9ec28a4ac7d12b0628 Mon Sep 17 00:00:00 2001 From: Federico Beffa Date: Fri, 27 Mar 2015 09:36:56 +0100 Subject: [PATCH] build-system: Add haskell-build-system. * guix/build-system/haskell.scm: New fil