all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Recursively propagate build-system 'arguments' to dependency packages?
@ 2017-02-07 15:15 Federico Beffa
  2017-02-07 19:07 ` Myles English
  0 siblings, 1 reply; 8+ messages in thread
From: Federico Beffa @ 2017-02-07 15:15 UTC (permalink / raw)
  To: ericbavier; +Cc: help-guix

Eric Bavier <ericbavier@openmailbox.org> writes:

> On Mon, 06 Feb 2017 21:09:33 +0000
> Myles English <mylesenglish@gmail.com> wrote:
>
>> Trying to define a package to be compiled by ghc-8, and I think all of
>> its dependencies must also be compiled by ghc-8 rather than ghc (which
>> is version 7).  This is easy to do with one package, e.g..:
>>
>> (define-module (my-packages myhaskell)
>>  ...
>>   #:use-module ((gnu packages haskell) #:prefix haskellmain:))
>>
>> (define-public ghc-hunit8
>>   (package
>>     (inherit haskellmain:ghc-hunit)
>>     (arguments `(#:haskell ,ghc-8))))
>>
>> To do that recursively for all the dependencies seems Too Difficult so,
>> is there a way to do something like --with-input=ghc=ghc-8 but with the
>> build-system arguments?  Perhaps doing the work in between the Bag and
>> the Derivation?
>
> You may take a look at the 'package-with-python2' procedure in
> guix/build-system/python.scm, which seems like it could be adapted to
> work with haskell/ghc packages.

Hi Eric, Myles,

it seems that the only Python specific part of
'package-with-explicit-python' is the keyword '#:python'. What do you
think of generalizing it by making it a function keyword argument and
move the procedure to its own module (maybe (guix build-system
utils)?).

Regards,
Fede

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Recursively propagate build-system 'arguments' to dependency packages?
@ 2017-02-06 21:09 Myles English
  2017-02-07  2:19 ` Eric Bavier
  0 siblings, 1 reply; 8+ messages in thread
From: Myles English @ 2017-02-06 21:09 UTC (permalink / raw)
  To: help-guix


Trying to define a package to be compiled by ghc-8, and I think all of
its dependencies must also be compiled by ghc-8 rather than ghc (which
is version 7).  This is easy to do with one package, e.g..:

(define-module (my-packages myhaskell)
 ...
  #:use-module ((gnu packages haskell) #:prefix haskellmain:))

(define-public ghc-hunit8
  (package
    (inherit haskellmain:ghc-hunit)
    (arguments `(#:haskell ,ghc-8))))

To do that recursively for all the dependencies seems Too Difficult so,
is there a way to do something like --with-input=ghc=ghc-8 but with the
build-system arguments?  Perhaps doing the work in between the Bag and
the Derivation?

Myles

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

end of thread, other threads:[~2017-02-10  9:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-07 15:15 Recursively propagate build-system 'arguments' to dependency packages? Federico Beffa
2017-02-07 19:07 ` Myles English
2017-02-08 16:01   ` Ricardo Wurmus
2017-02-09  9:55     ` Generalizing DAG rewriting Ludovic Courtès
2017-02-09 23:47       ` Amirouche
2017-02-10  9:55         ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2017-02-06 21:09 Recursively propagate build-system 'arguments' to dependency packages? Myles English
2017-02-07  2:19 ` Eric Bavier

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.