From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Parameterized packages Date: Tue, 14 Jan 2020 16:05:39 +0100 Message-ID: References: <87woitz1xx.fsf@gnu.org> <87o945vze5.fsf@nckx> <8736ldq74z.fsf@netris.org> <20190719202906.lbanx5puk7t6q4cr@cf0> <87a7753boq.fsf@ambrevar.xyz> <87h813wah0.fsf@gnu.org> <87v9piut40.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36904) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irNlU-0001M2-1P for guix-devel@gnu.org; Tue, 14 Jan 2020 10:05:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irNlS-0003FR-TE for guix-devel@gnu.org; Tue, 14 Jan 2020 10:05:55 -0500 In-Reply-To: <87v9piut40.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix Devel Hi Pierre, I do not not if it related. Currently, the option "--with-input" does not re-write the implicit inputs. Probably for good reasons. :-) For example, say I would like to have the version 3.4.3 of R (2017 old). This version is really old and had disappeared. Other said, it is older than the introduction of "inferior"s and so "guix time-machine" does not help (but that another story). At this point, it is not matter the GCC version that it is used to compile this R version. Well, it is not too complicated: git show cbe1314a7e:gnu/packages/statistics.scm > /tmp/stuff/old-stats.scm # edit old-stats.scm to tweak the modules guix build -L /tmp r-minimal@3.4.3 Now, I would like to build the package r-rcpp at the version 1.0.3 which is introduced recently using the old R version 3.4.3. Well, the naive idea is: guix build -L /tmp --with-inputs=r-minimal=r-minimal@3.4.3 r-rcpp but because r-minimal is an implicit inputs, it is not re-written. This behaviour is expected because the bag is really huge. To be convinced, try: "guix graph -t bag r-rcpp | dot -Tps > r-rcpp-bag.ps"... and wait... :-) >From a practical point of view, re-write any implicit inputs is touchy. And I do not know if the "parametrized package" is related or not at all -- I do not see real difference between re-compiling with this flags and re-compiling with this version -- but be able to recompile a matrix of combinaison would be really cool! All the best, simon