From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: Re: Recursively propagate build-system 'arguments' to dependency packages? Date: Mon, 6 Feb 2017 20:19:36 -0600 Message-ID: <20170206201936.65f76594@openmailbox.org> References: <87tw873u2a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cavNo-0007Ja-90 for help-guix@gnu.org; Mon, 06 Feb 2017 21:19:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cavNl-0002b2-Ik for help-guix@gnu.org; Mon, 06 Feb 2017 21:19:52 -0500 Received: from lb1.openmailbox.org ([5.79.108.160]:38041) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cavNl-0002YV-9x for help-guix@gnu.org; Mon, 06 Feb 2017 21:19:49 -0500 In-Reply-To: <87tw873u2a.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Myles English Cc: help-guix On Mon, 06 Feb 2017 21:09:33 +0000 Myles English 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. `~Eric