From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Recursively propagate build-system 'arguments' to dependency packages? Date: Mon, 06 Feb 2017 21:09:33 +0000 Message-ID: <87tw873u2a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caqXn-0003bj-5v for help-guix@gnu.org; Mon, 06 Feb 2017 16:09:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1caqXk-0001bb-2N for help-guix@gnu.org; Mon, 06 Feb 2017 16:09:51 -0500 Received: from mail-wj0-x242.google.com ([2a00:1450:400c:c01::242]:33682) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1caqXj-0001aQ-Sc for help-guix@gnu.org; Mon, 06 Feb 2017 16:09:47 -0500 Received: by mail-wj0-x242.google.com with SMTP id le4so4443746wjb.0 for ; Mon, 06 Feb 2017 13:09:46 -0800 (PST) Received: from localhost (91.109.241.36.static-uk.cryptolayer.com. [91.109.241.36]) by smtp.googlemail.com with ESMTPSA id o22sm3637230wro.2.2017.02.06.13.09.43 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Feb 2017 13:09:44 -0800 (PST) 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: 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