From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iI6hAfs4FGWLFwEAauVa8A:P1 (envelope-from ) for ; Wed, 27 Sep 2023 16:15:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iI6hAfs4FGWLFwEAauVa8A (envelope-from ) for ; Wed, 27 Sep 2023 16:15: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 9E19A53741 for ; Wed, 27 Sep 2023 16:15:22 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ultrarare.space header.s=dkim header.b=nE+8qCOn; 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"; dmarc=pass (policy=reject) header.from=ultrarare.space ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695824123; 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:dkim-signature; bh=yBGaSs2moDpcOWibewIebtW0ci/a6g0IUPScmRsWu4g=; b=KDVcCBPjn1fQLKK99puK5BFALsCUsnpK2chJ9EMNnnrWmjy5eu3zsfuMgo6cjcbZPUxTID Y37/iMZdy4pGXWpgHSqkq1oqj5/PD4k7mSrrvqGeeGXQxvepcNN6rgYcz/xB+sRePsQUTY bNto9ouzhfe6qO8XjinG1FDmKWxl/8W4IbAUzHicRn4AKIegSrWYS8MDHQg6gykbHX9It6 2OwV3u15Hs9NBgzYGp1baUgwMEVR/nSitfoyzT3GaDXhllpgu4886dayfhJzfdALpVNeE0 5zJYiupyk15TXOelLRnFVZuSTm+1BhLHmbHpb/M0pssPfcEJcRRa1uMutY4boA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695824123; a=rsa-sha256; cv=none; b=KCAXvyskq3EFM8nE1lyJqwkugKnbcRLU13qyMdK4bnHICy9KtGtZ9FKVUEJ9R4mPyIdTRl 0unjR6ym7j5ICv/vOpG4Xfqai2QlA6zIAljuBEdXy/o/coSLnWghsjuuTfCOHrPhrxFuBH B7zrAFA8BBIA7VvDZ6Qe959SM1txK3Z0x008vnUp6ufZAyUhD9jS6X3J/KNwRYaGW5tDTK YqGmX05V+2G4lkcxBWwqUYoWW4hx9YXuxUe7+V/auD8WbJDHSO/png9gS3LsyQ1lWsD65n mVN/G7JaP3zoZPwUcJMEgRO4RDdHFuPmpUPWFALa41WZ7Ma/nEM6dEGWpuU6Cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ultrarare.space header.s=dkim header.b=nE+8qCOn; 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"; dmarc=pass (policy=reject) header.from=ultrarare.space Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qlVJU-0006Ux-Vq; Wed, 27 Sep 2023 10:14:53 -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 1qlVJU-0006Up-4T for help-guix@gnu.org; Wed, 27 Sep 2023 10:14:52 -0400 Received: from mail.boiledscript.com ([144.168.59.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qlVJS-0006W4-Ah for help-guix@gnu.org; Wed, 27 Sep 2023 10:14:51 -0400 Date: Wed, 27 Sep 2023 22:13:50 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1695823985; h=from:from: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; bh=yBGaSs2moDpcOWibewIebtW0ci/a6g0IUPScmRsWu4g=; b=nE+8qCOnTjjqF1i3RZJtdCWcEZhWh8vYRxRPe/BMA48Zv0jj3H9X22RS7Njqaj6U9RaL/L v+1FCseF2bYBf+1sOxFuWX1Rcxt92O44w4Tql/wTAyVRAR71Q3CvyBRCngJKY4CSBjLsJP yh0DOE/g9b/or64lhJEd19jcvyj8++DUOPlqcEpgCqp+2NsrV8ns+Ga9Ot6bcLeVEoxdGv sqhpd36/GwfitW9bCUjFckB1EYGDTLxmLNRzHIcFrQtJiqzJ657eq05LfzMTjDJ+vbURH2 YyrYgyTKCrIOn/3zjFQrJXPN9NkcK7u8d9hTbjjQ0D24stQ68YwM5KAObfBRJw== Message-ID: <87pm23r9ep.wl-hako@ultrarare.space> From: Hilton Chain To: nils@landt.email Cc: help-guix@gnu.org Subject: Re: Recursive substitute-keyword-arguments / setting default on build system In-Reply-To: <2042058673.297636.1695726486678@office.mailbox.org> References: <2042058673.297636.1695726486678@office.mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.44 X-Spam-Score: -6.44 X-Migadu-Queue-Id: 9E19A53741 X-TUID: J1zlJ5opejpx Hi Nils, On Tue, 26 Sep 2023 19:08:06 +0800, nils@landt.email wrote: > > Hello, > > I use a slightly customized emacs package, and want to use it as the package that is used in emacs-build-system for the emacs plugins I'm using. > The default emacs gets garbage collected and takes quite a while to reinstall, I would like to avoid that. Also, it seems cleaner to build the plugins with the exact version that they will be used with. > > Here's what I have: > > (define emacs-package > ((const > ((options->transformation > '((with-configure-flag . "emacs=--program-transform-name='s/^ctags$/ctags.emacs/'"))) > emacs)))) > > (define (set-build-system-emacs plugin-package) > (package > (inherit plugin-package) > (arguments > (substitute-keyword-arguments (package-arguments plugin-package) > ((#:emacs emacs) `,emacs-package))))) > > (map set-build-system-emacs package-list) > > From what I can tell this does work for the packages in package-list, but not for any inputs to those packages. That makes total sense to me, but I don't know how to solve it. > Any pointers? Or is it possible to set the default package for a build system, removing the need for this mapping altogether? `package-input-rewriting' (documented in [1]) can be used for the purpose: --8<---------------cut here---------------start------------->8--- (map (package-input-rewriting `((,emacs-minimal . ,emacs-package) (,emacs . ,emacs-package))) package-list) --8<---------------cut here---------------end--------------->8--- Thanks --- [1]: https://guix.gnu.org/en/manual/devel/en/html_node/Defining-Package-Variants.html