From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2DhlOUrzcmPX9QAAbAwnHQ (envelope-from ) for ; Tue, 15 Nov 2022 03:02:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yKdMOUrzcmPhgwAA9RJhRA (envelope-from ) for ; Tue, 15 Nov 2022 03:02:50 +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 7A4423C6F5 for ; Tue, 15 Nov 2022 03:02:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oulHN-00033V-Rz; Mon, 14 Nov 2022 21:02:26 -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 1oulHJ-00032V-Mh for guix-devel@gnu.org; Mon, 14 Nov 2022 21:02:22 -0500 Received: from mail.thebird.nl ([94.142.245.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oulHH-00087z-8u for guix-devel@gnu.org; Mon, 14 Nov 2022 21:02:21 -0500 Received: by mail.thebird.nl (Postfix, from userid 1000) id 11EDAEEF; Tue, 15 Nov 2022 03:02:17 +0100 (CET) Date: Tue, 15 Nov 2022 03:02:17 +0100 From: Pjotr Prins To: Andy Tai Cc: guix-devel@gnu.org Subject: Re: Fwd: question on setting up guix.scm for project development Message-ID: <20221115020217.ebomyj27r67ley3w@thebird.nl> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Received-SPF: pass client-ip=94.142.245.5; envelope-from=pjotr2022@thebird.nl; helo=mail.thebird.nl X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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=1668477770; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=zBHkLSxW3Ol3HyPxwPNKHMgeLzJr7t7STauiEd4fJ6k=; b=elkg8t1jd/qVuBDYFCO6sxmNikHQD1ggMIMqDx14csGaqoQcSnd7fENSRbpLbMlP2GS08+ 5KJI8m3UpfK4He+s4Eh6P/OnaoDKu47rs5MsLQGryy5TGKl7b06WCiXjfZUvrbRlmDN68D nGPulhCpF+3a9qlCzUE3HdEciCaLSWUQq0nicrsERat7ngOqQqO++dOYNN45ZzUnRh8mHb 2+tqq+jSImhCqoCo6+QxV1CNIo/UmFo3hfV7uHFzrowQNue44ZD9kEkSnRoQSRcd6ITWZg eQSZZacj+BLakMfaJ3zG3V8u65/nraDcsomrlVaf+ep7r4elO2C4dG4wQfvcpQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668477770; a=rsa-sha256; cv=none; b=kIrYPeyDNeE5IQipunw4DpNzqNb0n/tbCsfh8qHE8Yi9yz0q9wtGyklfOYOVfhbKu2a6vc gFG2BYj6t1+lSlVL9L6D7766CqPkylUqzZKy4k6Kifkzj7m4KuL1tLGnQhY39QhduTKC1k DMOIAE2pcoeHIKikWFqfzsPf/AD/aHaHBtry/jZHKDSm4ZxE2Neid66JwGZ3m+pGjnbtsA LWaMiFfN65Ekm7yydGxKfMcn42lHxHi0KbPoe6Ga2CbTjY9veJ3mCRLQYXJBdz5STBTqdy KC3NqUVbrSsSAoPQKikRJlY5s+vIewZU2tbKW1tP8Mv3TTMv/2XkwLNPrH1euQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -2.84 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 7A4423C6F5 X-Spam-Score: -2.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: 88QQIRZT73+X It is a good idea. Best way is to create your own packages in a channel and include those. On Mon, Nov 14, 2022 at 10:41:58AM -0800, Andy Tai wrote: > Hi, guix allows setting up an environment containing all the > dependencies for development of a package; this can be done via a > guix.scm file containing the package definition. > > 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.scm 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.1.2 but I > need a later release version 0.1.4; so I tried something like this: > > ----guix.scm--- > (use-modules (guix packages) > ....) > > (define-public d2-0.1.4 > (package > (name "d2") > (version "0.1.4") > > ... > ) > > > (define-public my-package > (package > (name "my-package") > (version "0.1") > ... > > > (input (list d1 d2-0.1.4 d3...) > .... > )) > > my-package > > ---end guix.scm--- > > > and if I use > > guix shell -f -d ./guix.scm > > this does not seem to generate an environment that contains the new > dependency, that is d2 version 0.1.4 > > I wonder how can this made to work? Ideally no need to create a > private channel or such.. Thanks for info on this. >