From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QObyIsP8pmSmzwAASxT56A (envelope-from ) for ; Thu, 06 Jul 2023 19:41:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uODGIsP8pmRp1QAA9RJhRA (envelope-from ) for ; Thu, 06 Jul 2023 19:41:23 +0200 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 E00089D0A for ; Thu, 6 Jul 2023 19:41:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHSyK-0001Br-CP; Thu, 06 Jul 2023 13:40:52 -0400 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 1qHSyE-00019W-QT for guix-devel@gnu.org; Thu, 06 Jul 2023 13:40:46 -0400 Received: from out1.mail.ruhr-uni-bochum.de ([2a05:3e00:8:1001::8693:3595]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHSy6-0005ON-0n; Thu, 06 Jul 2023 13:40:40 -0400 Received: from mx1.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by out1.mail.ruhr-uni-bochum.de (Postfix mo-ext) with ESMTP id 4QxkM92gChz8S3c; Thu, 6 Jul 2023 19:40:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1688665221; bh=2d+Nd3yC68XkSqPHpiP4xHWhpE2f/5yzne9/qhA4Y/E=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=N9Wxc1M9EaNmxnQwes1qbuDDNeebhYrKXee1BCzIBoaykM+gkQI9bBRjbbCsyZS3M LezzMyVuIadau2bKmFxBWAjlUrJoHIJOrhwZZ6zDeND06dwmIv8SicmLBIY54fpXHu akki4AnIe9lHHU6ykoX+RY9qTJIAw5MMwiqvICpU= Received: from out1.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by mx1.mail.ruhr-uni-bochum.de (Postfix idis) with ESMTP id 4QxkM91nDSz8S2q; Thu, 6 Jul 2023 19:40:21 +0200 (CEST) X-RUB-Notes: Internal origin=IPv6:2a05:3e00:c:1001::8693:2aec X-Envelope-Sender: Received: from mail2.mail.ruhr-uni-bochum.de (mail2.mail.ruhr-uni-bochum.de [IPv6:2a05:3e00:c:1001::8693:2aec]) by out1.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTPS id 4QxkM85pq4z8S1n; Thu, 6 Jul 2023 19:40:20 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at mx1.mail.ruhr-uni-bochum.de Received: from [127.0.0.1] (dslb-088-067-248-209.088.067.pools.vodafone-ip.de [88.67.248.209]) by mail2.mail.ruhr-uni-bochum.de (Postfix) with ESMTPSA id 4QxkM743HnzDgyX; Thu, 6 Jul 2023 19:40:19 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 1.0.0 at mail2.mail.ruhr-uni-bochum.de Date: Thu, 06 Jul 2023 19:40:16 +0200 From: =?ISO-8859-1?Q?Daniel_Mei=DFner?= To: guix-devel@gnu.org, Arun Isaac CC: =?ISO-8859-1?Q?Ludovic_Court=E8s?= , Efraim Flashner Subject: Re: Development repositories as Guix channels In-Reply-To: <87edllw1k5.fsf@systemreboot.net> References: <87edllw1k5.fsf@systemreboot.net> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a05:3e00:8:1001::8693:3595; envelope-from=daniel.meissner-i4k@ruhr-uni-bochum.de; helo=out1.mail.ruhr-uni-bochum.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688665283; 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: 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=2d+Nd3yC68XkSqPHpiP4xHWhpE2f/5yzne9/qhA4Y/E=; b=kXqqGzUnBAb8eP4xclE3gQptgxp3lV/0xFDSbpt7llPxbS0BGbarkduTpod7o+jMASCiFj yg+CDoy6q78Uzb2d8yHGR9exP3DbSdTtLmUSS6PfahzZNA0xVkwOvG7bqBLUUeM60sdo81 t6zHTK0JbhNP2YSCNR2LcyGUv667XUQuISE3WNo059RpLINk7ffr86n1Dt4gG+4OUE1FcL YA3WyFONjFrRDW6ZaMd1jlV/LpvmfFxWoWFVHUZsTVHqTAfnl3l4nwPvEWhN4ASQONTKb3 C1s0mELsZYZn6ZkRAYhB3xrO5cGtUJ8QVfbdJ7aS5+m2ycGwMttrFcbxr2WtRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ruhr-uni-bochum.de header.s=mail-2017 header.b=N9Wxc1M9; dmarc=pass (policy=quarantine) header.from=ruhr-uni-bochum.de; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688665283; a=rsa-sha256; cv=none; b=DXU9DTffWJCw/AnCVs/s6f7tRGNAlirfjkY0mtu3ZH9Ly41oxqNIyrd8I5smJNGdX1C9Fq DP8/nhkjG0rieAeEZgobQcD50TvaSJjaUC7u1YsJqgkk+S6v4peyMWW06fAPhR/vM8Y0Qf gabBLLWK8vWLSqfzeE5nnZ4xBTTOf388OeDRzSyEffZ049Q5k98Y1a6LssTfyCDByYDlAB RCBwA+16NaQeYdidPUF6rvuEFTIeghfjn9dXG6qchC+nC/Yg6T+h3LymAGxXVdsCfCH1ua HQ9hgQOvwEj3mVhq+4r5KCKABBp3Afxp7ZLXylnGE8mJTug41kHTNbeCz50wgg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ruhr-uni-bochum.de header.s=mail-2017 header.b=N9Wxc1M9; dmarc=pass (policy=quarantine) header.from=ruhr-uni-bochum.de; 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: E00089D0A X-Spam-Score: -4.17 X-TUID: T04Ux9CYXaTr Hi Arun, Am 6=2E Juli 2023 16:35:06 MESZ schrieb Arun Isaac : >=20 > Hi, >=20 > This is with reference to the "Level 2: The repository as a channel" > section in the Guix blog post "From development environments to > continuous integration=E2=80=94the ultimate guide to software developmen= t with > Guix"[1]=2E This section describes how to convert a project repository > into a Guix channel so that the repository can double as a way to > distribute packages=2E I have been trying to follow the instructions and > have hit a little snag=2E >=20 > The post says the source field of the package definition should be a > local-file file-like object=2E This is fine as long as we are using `gui= x > build' to build packages in the repository=2E But, when the repository i= s > distributed as a channel, the local-file becomes meaningless=2E The > channel only has access to the sources under the =2Eguix/modules directo= ry > and none of the sources required to build the package itself=2E >=20 > It seems to me that it is not possible to distribute project > repositories as Guix channels=2E But hopefully, I'm missing something > simple=2E Could anybody please clarify? I have recently followed the instructions from this blog post as well and = indeed you are right that it does not work as advertised=2E There's however= only a small mistake in the changes for Level 2=2E You have to replace the= relative path in the local-file form with "=2E=2E/=2E=2E" as that gives yo= u the root of your source tree relative to the new location of the Scheme f= ile=2E Then everything works nicely=2E Even building the package with `guix= build -f guix=2Escm' works from the root of the tree=2E Somehow Guile comp= utes the directory relative to real file and not the symlink=2E Didn't expe= ct=2E Bonus: I have even setup CI via Cuirass which was surprisingly easy on a G= uix system and now it rebuilds my package every time one of its inputs in G= uix changes =E2=9D=A4=EF=B8=8F This is awesome! Thanks for this blog post, = it was inspiring=2E Hope that helps Best --=20 Daniel