From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EHRUHZcuc2NHnQAAbAwnHQ (envelope-from ) for ; Tue, 15 Nov 2022 07:15:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SF1/HJcuc2NTCgAAG6o9tA (envelope-from ) for ; Tue, 15 Nov 2022 07:15:51 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 40FE51B47E for ; Tue, 15 Nov 2022 07:15:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oupEJ-0007YM-IL; Tue, 15 Nov 2022 01:15:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oupEH-0007Xl-7p for guix-devel@gnu.org; Tue, 15 Nov 2022 01:15:29 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oupEB-00067a-UY for guix-devel@gnu.org; Tue, 15 Nov 2022 01:15:28 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 7de9ae2b; Tue, 15 Nov 2022 06:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=b2X12NpELy2y swMWG76Le8fubD6Mwr6LLUWpC2oX6AQ=; b=FtWKcToitJcp9kfN+ozJevMEGM+f Ub87yKb0W1h2J84FpeX5VM0d1osC35EOovZiJPNwGTZUXgr/q2WuVRTysFpqzEby k3CQilI67QVkXIgUt8dqwIiVZHNl/uqVLz2OpwrJtUipH/Qk7ZC3nVUQfKXnfaxL bdO+6JRnI1iauTtVjg665T+76EtzDIneM9PvqjP0oL+3EgHwh+XV3rQ+BgKL6FRE brutWLYxFTD2lKQzLtO2/kMI5sktyOqnB5L3BAm5piLZGey9n44iLl2IoUhgYG2l LYkzkV8BCzlEfVNQax4rWCG4qXYPxCSpnq6rFEvAV9RhP+YJPxiEAUzQwQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 200a2987 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 15 Nov 2022 06:15:21 +0000 (UTC) Date: Tue, 15 Nov 2022 07:15:19 +0100 From: Julien Lepiller To: guix-devel@gnu.org, Andy Tai Subject: Re: Fwd: question on setting up guix.scm for project development User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <331E65BE-81A7-4484-9B10-DC2021979D25@lepiller.eu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----K8GT1ZM92KBJT1N4XSYFY8RB9OW14S Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668492951; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2QrvLPvnoyQTmS1YXi3thhYEMID+DNWRcuXs3IVxS7c=; b=TTTvZK23SgSsAD8E4dFuhIFCqdU4KcqcTM0Nxu1pBg+eh+1O2+KR6r64dmKI+NZU0LjhM5 skPc8eWOUmggfmi6oFsXBVXxc3udbyulkloHPTROf0lRlUCmlfWOn72CXCKrvk9Eczl2+o 5WpeSxhtDDjpL62LL82bkugObXSFRlghn2RBtuY2JHcYeLlAc48oQL5eyA0TYb7gB1rcXi AImHNT3vlNQdVzKYG139544q04YpcWDXNt66fMqON7I9wb09eVxzDIW4IxbZMb4d8dxzav WUCDQWWx8vT87A2OicK6Wsb2YFq3qyA4U4WtVAm/invmPLPEeud4b6DgopEM7g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668492951; a=rsa-sha256; cv=none; b=hbX1yPhWRTk2F9C2T2rGradKOiUSCbBac7hRqkIIKdN0hIFobDbfqfnQim1z4HQ1c8pqo1 myLLWNMpowtEEpviXTlZ62KM+SYhfxsMX/lsskpjCDJx4j23o/7F3ZDqcJ/dMAeJDx3rz4 9pip1uNjdfuTX/5QiQ9oZxMQOREVsKL3HoaHVm1ilTCaVBcVmnkICqCKINjkRWtgPXiuPN /0fO1MvvY8/trn/fNCLVUMhiOW1GDQNH8sGkszB/UqK45Se2NbU4XPs1F1bwHuOf70Yr2w BlZLAI6Z/CtX9FjjSkGidoEnZPVqcWiHsiEIvTjL6xLl7wV2jsjI6jOGKkwTiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=FtWKcToi; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=FtWKcToi; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 40FE51B47E X-Spam-Score: -4.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: TY3Q8RK1yRcg ------K8GT1ZM92KBJT1N4XSYFY8RB9OW14S Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I think you got it right, I've used thas in the past=2E Maybe your cli opti= ons are out of order? Instead of -f -d, try -D -f=2E Do you even have d1 or= d3 in your current shell? Could they come from outside? Le 14 novembre 2022 19:41:58 GMT+01:00, Andy Tai a =C3= =A9crit=C2=A0: >Hi, guix allows setting up an environment containing all the >dependencies for development of a package; this can be done via a >guix=2Escm file containing the package definition=2E > >My question is, if I am developing a package which has dependencies >with newer versions than what is available in the guix repo, how can I >use the guix=2Escm file to bring in the new version of the dependencies? > As an example: > >Say my package "my-package" has dependencies d1, d2, d3 >where d2 in the current guix package repo is at version 0=2E1=2E2 but I >need a later release version 0=2E1=2E4; so I tried something like this: > >----guix=2Escm--- >(use-modules (guix packages) > =2E=2E=2E=2E) > >(define-public d2-0=2E1=2E4 > (package > (name "d2") > (version "0=2E1=2E4") > > =2E=2E=2E >) > > >(define-public my-package > (package > (name "my-package") > (version "0=2E1") > =2E=2E=2E > > > (input (list d1 d2-0=2E1=2E4 d3=2E=2E=2E) > =2E=2E=2E=2E >)) > >my-package > >---end guix=2Escm--- > > >and if I use > >guix shell -f -d =2E/guix=2Escm > >this does not seem to generate an environment that contains the new >dependency, that is d2 version 0=2E1=2E4 > >I wonder how can this made to work? Ideally no need to create a >private channel or such=2E=2E Thanks for info on this=2E > ------K8GT1ZM92KBJT1N4XSYFY8RB9OW14S Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I think you got it right, I've used thas in the pa= st=2E Maybe your cli options are out of order? Instead of -f -d, try -D -f= =2E Do you even have d1 or d3 in your current shell? Could they come from o= utside?

Le 14 novembre 2022 19:41:58 GMT+= 01:00, Andy Tai <atai@atai=2Eorg> a =C3=A9crit=C2=A0:
Hi, guix allows setting up an environme=
nt containing all the
dependencies for development of a package; this ca= n be done via a
guix=2Escm file containing the package definition=2E
=
My question is, if I am developing a package which has dependencies
= with newer versions than what is available in the guix repo, how can I
u= se the guix=2Escm file to bring in the new version of the dependencies?
= As an example:

Say my package "my-package" has dependencies d1, d2= , d3
where d2 in the current guix package repo is at version 0=2E1=2E2 b= ut I
need a later release version 0=2E1=2E4; so I tried something like t= his:

----guix=2Escm---
(use-modules (guix packages)
=2E=2E= =2E=2E)

(define-public d2-0=2E1=2E4
(package
(name "= d2")
(version "0=2E1=2E4")

=2E=2E=2E
)


(d= efine-public my-package
(package
(name "my-package")
= (version "0=2E1")
=2E=2E=2E


(input (list d1 d2-0= =2E1=2E4 d3=2E=2E=2E)
=2E=2E=2E=2E
))

my-package

--= -end guix=2Escm---


and if I use

guix shell -f -d =2E/guix= =2Escm

this does not seem to generate an environment that contains t= he new
dependency, that is d2 version 0=2E1=2E4

I wonder how can = this made to work? Ideally no need to create a
private channel or such= =2E=2E Thanks for info on this=2E

<= /html> ------K8GT1ZM92KBJT1N4XSYFY8RB9OW14S--