From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 uGPRNZBGbGIdCwAAbAwnHQ (envelope-from ) for ; Fri, 29 Apr 2022 22:12:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sH08NpBGbGI/AwEAauVa8A (envelope-from ) for ; Fri, 29 Apr 2022 22:12:00 +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 54201E753 for ; Fri, 29 Apr 2022 22:11:58 +0200 (CEST) Received: from localhost ([::1]:57366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkWy5-0000nL-12 for larch@yhetil.org; Fri, 29 Apr 2022 16:11:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkWxN-0000n8-Nh for help-guix@gnu.org; Fri, 29 Apr 2022 16:11:13 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21125) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkWxL-0007C7-86 for help-guix@gnu.org; Fri, 29 Apr 2022 16:11:13 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1651263066; cv=none; d=zohomail.com; s=zohoarc; b=NqV2n4O3vgrQbTKOsSljLFu20TSxqccjwKPWYMQOsaAB6jxvGaioLiqq2Gv8PUIcsb1TpqldViIO37t3A1tZM2xxMLy6m471TpMqKuclTI5uA9TcX/bCVz8+NhGekP3eWlCdEsXojRjOZb0w3mardrplbBxVZzK0Q84hsNzD/bk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1651263066; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=W//nPAwMPvhsexACZg84wnr5bi1zWipKiyShItyRbzs=; b=njxA8TD++pQi+DrVZuT4fu+fhvHpFM1VKVa8DSR+WEAdEi7e6AN2xhSn6N7uIFccq0QqZNo3EkcvASApAeJ4KhzyDcgYenNANcpVIoXr5wiOTuLHNs7iuoSyQTbu84vcyepmKKwN3RXinEnY8Eqdt5UyVojdB6myOBGmT2FP//w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1651263066; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=W//nPAwMPvhsexACZg84wnr5bi1zWipKiyShItyRbzs=; b=XEJwxtPw37x9wGxNfMiHhyMjFljFL4doomIfLMlnv5MUsGb+T/wVw9ijwutLVHHW Rq6mcjWcT+VCe6zPcyQmSDFrU58eMgr+B/3Wro2jxeUED6V5mxeOPOV9mArvkt+4rlO RxNmeNoGZPo8jqR1XRmpqXxdMA9Fe6TF3CR3KxQ8= Received: from localhost (143-111-142-46.pool.kielnet.net [46.142.111.143]) by mx.zohomail.com with SMTPS id 1651263063822625.9831683910011; Fri, 29 Apr 2022 13:11:03 -0700 (PDT) References: <877d7joe2w.fsf@laura> <87levx4ui1.fsf@gmail.com> <87ee1pur82.fsf@laura> <86mtg5eibr.fsf@gmail.com> <87mtg5qovg.fsf@laura> <87ee1ge0k4.fsf@gmail.com> <87bkwkq73s.fsf@laura> <87mtg327ww.fsf@elephly.net> <877d77rhhx.fsf@laura> User-agent: mu4e 1.6.10; emacs 28.0.50 From: Ricardo Wurmus To: Olivier Dion Subject: Re: Questions regarding substitutes with debug output Date: Fri, 29 Apr 2022 22:08:27 +0200 In-reply-to: <877d77rhhx.fsf@laura> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <871qxf1wh7.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com 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, RCVD_IN_DNSWL_NONE=-0.0001, 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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Olivier Dion via , zimoun Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651263120; 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=W//nPAwMPvhsexACZg84wnr5bi1zWipKiyShItyRbzs=; b=HRUS6baOdcGBQOIzQ0Ov/2jf20Smrw69loRbCvkNDFAMQclfnGcnOvy7/ZITPjzsTVOGyp 8sXahg9CZUX8YmOCI0MUqx/UYvG9C6FM5XwtV01tw93PqZHu4Tni2INFe1PYxG5BGYUkZw 8/N17nz5bsxmL/G+6BD8N5h1Fx7YRU+h5e0ktBD3tN2Q7ya2518ldkbb1iAP+/4Ewz1EbQ dkyywnY/v+6x6kkWwERjdIDDOmzEz7nPp6vF66y75bE4tjQiX4iIXulP8DPluRanXmu7ir fKhn4ZTB7vnL1CbDnr6b2lh40sw3Myz+Fai7zLNOdD8SmMrpxeMNv9SrBPQJPg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1651263120; a=rsa-sha256; cv=fail; b=hG/2WrM//M+EzCvTA1W/XZKLN+6R4xv9l5TApSD47MLUkx30GroeJ92A9JGvfOsHxoqf+J NnmoHL+MPU5Xk2BMMOVykSTX5zSrSFJCYLc9dl44kwUw3vqOIKJj1F/vHQI1niP3sZJUoE he3LhkhehWfTrNBr1RMKTJQBs+umjmBZZLMk71TvF0lWEfEAtwoWa3yWOKHFU6OjIRtEHJ W7kKJWaFLgF7U/SP0Kj2+ycmEi6GJ7LZC2N/8yE6vtlnrq28uPL5Sg+a4vydt4JvDF94OC 1iwum8qw3iHxj9S4aq21tvPPzF7PMmDXvH5cIVk2xy4Fy0lN+kwqxidQS1ZDpQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=XEJwxtPw; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=XEJwxtPw; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 54201E753 X-Spam-Score: 2.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: luw9zn16BqHM Olivier Dion writes: > On Fri, 29 Apr 2022, Ricardo Wurmus wrote: >>> Even if I were to import locally defined packages, their dependencies >>> would come from the Guix's main channel! >> >> What would you think about WITH-CHANNELS that would accept a list of >> channels and evaluate any package reference in its body within an >> inferior of those channels? >> >> E.g. >> >> (with-channels %my-channels >> (package >> (name "yay") >> =E2=80=A6 >> (inputs >> (list foo bar baz)) ;these are all looked up in %my-channels >> =E2=80=A6 >> (license gpl3+))) > > What about dependencies? Says I have the following graph: > > G <- Guix's channel > C <- My channel > > P@V <- My package at version V from C > D@U <- Dependency of P at version U from G > > The `guix time-machine` allows me to pin the commits of G and C and thus > pinning V and U. Would that work the with WITH-CHANNELS ?=20=20 Exactly the same way. The first argument to WITH-CHANNELS would be (cons C G) and thus P and D would be picked from the set of C and G. C and G can be specified with exact commits or branches, just like the --channels option to =E2=80=9Cguix time-machine=E2=80=9D. We already have all the tools for WITH-CHANNELS =E2=80=94 that=E2=80=99s (g= uix inferior). We just don=E2=80=99t have a convenient syntax to do this witho= ut a lot of boilerplate. --=20 Ricardo