From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id iJIoHH2WFWa0/wAAqHPOHw:P1 (envelope-from ) for ; Tue, 09 Apr 2024 21:26:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iJIoHH2WFWa0/wAAqHPOHw (envelope-from ) for ; Tue, 09 Apr 2024 21:26:53 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b="scoa/6V9"; dkim=pass header.d=wolfsden.cz header.s=mail header.b=B0RfIIh2; dmarc=pass (policy=none) header.from=wolfsden.cz; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712690813; 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=zr57v09tAqqi5VXMRtnZLUMlMQsjbbWM0ixF4nKq1uE=; b=G8JQ+F6zvt8l4B1muFFcEEccA0Ds5Kq5FZ68vFG9UuOWDSkmbdkjxA3MxeO+J+Q6PwLckT mBnUOG4STJhvzliueH1Wv/AFwF+JMfGraaa/O6MNbrMiBH3SVtRGx+ORRYN2hQcfRJZyMC 9a/WQI/ku0T3T6H8oZxx2RayVgWEETUGeLpE9IQcbDetUsvzWc1NSV0iA3W6mUuUX3tFOh LoYLDX7PZWoyHH7JXtgRcDPOHmryJrOeIpF2r9sxeJLd5Bvdui7kxPzqpi7SwUYLv2JN5H L/SFvvPSlGvC+Ls/IudkDHv35+BICBOLA09paXPz1LGTR5ylcTew+808iIPT6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b="scoa/6V9"; dkim=pass header.d=wolfsden.cz header.s=mail header.b=B0RfIIh2; dmarc=pass (policy=none) header.from=wolfsden.cz; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712690813; a=rsa-sha256; cv=none; b=QuKLJoaEnlTqWagnAib4UPkegS+bSMW/sU7HNoEJvEwLzc1U5Lx5S6Tn519eawEAUyeG5S J+UHbMGPqCGY+J4b0yotc5OQRf9S0CKjHRbs8orc53RH0F9fIImUYD57unNU0sr22gmaGM nU+Rg4i0NQqsNiW8XWC5bmADQftIcM+OSFccAvTdRedkGtRFQ6NqzuPtANWa/4CfqsP8cc /DXfyOdmt6wa+YK4t4UiEyGzOlp2jMLihcyb1aFhZuVi94ZN8NJUNCtDZGj4eZSKThAFSj 4SlW3AeMCU+lbN9t04Bfhak5sPiMByx8j2fSYBf0GLfIbumOFxDDGGtuAHGQow== 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 22358B50D for ; Tue, 09 Apr 2024 21:26:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruH1u-00067c-VM; Tue, 09 Apr 2024 15:21:15 -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 <~@wolfsden.cz>) id 1ruH1t-00067S-Kh for help-guix@gnu.org; Tue, 09 Apr 2024 15:21:13 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1ruH1p-0001sz-0r for help-guix@gnu.org; Tue, 09 Apr 2024 15:21:13 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 03B2B2A85F7; Tue, 9 Apr 2024 19:21:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1712690466; bh=j4L18/+7XqlMFTMHOEnT46c93GmFBiWAst8yGhU4bsU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=scoa/6V9RhY3nz3TSQkltMlmR5Q4IbIvnrNh6aH9VJzsR2IIcQF1rhVIXjkJPJZdP 2YJzVA/D3RKBTIYXGknnqeyWsRJ0bOK7pS7HidpgyESJctJqPAnqUDbMafbHVltjmG 4l6EjnJ8z1vCcixMLsSVpHl3avIVPjy9ppanML0e8YscIUZYOrlhVWKRwAdEqfQkgm t8uCkIuB5tUybZnyy9k3YFJY6L5fdzHrEooPdpCKNe9Wt17CYfzplSC4VKzbo0damL SvHgpPC4/SLE7zcMRzjfZa9FkIoE4CXqvPNwQF35D2WErvAM8IFGdt9XzkuFLyIp/r HpWntfk4GILPrTP2j8uAk8LzuTy6HS/0niaKvSl3HfrH8DemE0nXxZoV0QgUeVGDXI JkU2uB/Xkas0DInKo89on3f4iiMf7UwrPxZnvPzBX7oBNvOHG5qecENwOe5GqMeSIM /gg6ZaG+N8Rv2WWe63EFuux7m80BWO5JaVy/bMWm7M+mrFnBMmlZInVwEW3G5T4zDD ktuH1xKktXiecuHeVzyrU1WEEgynJIuxLlJ6aNRNHY8SIMEaqRKEdWywjjihVFobeT wY8gA3Ldfq8SW3oEWRlf46xkaaN14TBYfGiKA6dmg58qxctZ/YQ2xh2HL9YKqxqDIP bC7F+OgXzXDV7aTf5AxKNVTc= Received: from localhost (unknown [81.17.16.93]) by wolfsden.cz (Postfix) with ESMTPSA id B89872AA27E; Tue, 9 Apr 2024 19:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1712690465; bh=j4L18/+7XqlMFTMHOEnT46c93GmFBiWAst8yGhU4bsU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=B0RfIIh2sfzCL2b12c1edjZTMsFIdmjVJK6wLA6RLwPqNYvZgin4rSmB8nlkvooif fYOyCcV8wK22fJcwjbHP880r8y+KaEozcfjQuOzfO7Bp92HeVRYUfgb6DZ30SwjJqQ v74gv26vt+72INSxznhtZV0c0EYiNPGZRfexMIWf8OPIMkM/izhhrUpOSVM5Arm7wW M6BonFfjCWIxEBW0oDoy2S1ePdXhUnE+An29XxtsX1GqLGHwiwp0HxBPdiH0yKN/Z+ fIjYZTDq8v8rkWD7IRsnTgP5ZGOrqqkirnngH8rdeex7CbAY4lky+PdaMVuQ9P4CZS WS//gQq8wcnBjhO8AEcszLhiZhNyG4Azp68HVsCQXJivegcnFUi+jzbYR08f1P5uh3 mOVNytMRHto9kosYKOBTmWtsNo/LZqV/ZUZC2Jul7Nrx6EgMwqAAI16qxnfba8q+vN gFzGMBlwjNJ8Y2sg1AofzaROWDlUZDKfntojtFAyANW3AxIfE07qt9xu9TNvUFW/a1 XP0dMslHZRKn9mGzZ0VcVD4c7z9Q7hoJ6yk5tQdG05RqZz2jarwyulv3h4uRKynbK8 XpA2AgA15zV2kBS4kM3KpHqmkhCjKPGKnoIhgrVo+knqxaKC5EREuyzvAViJwXYLzH oZ8OwbDTxe2cp9oc3frFcWY8= Date: Tue, 9 Apr 2024 21:21:00 +0200 From: Tomas Volf <~@wolfsden.cz> To: Vagrant Cascadian Cc: help-guix@gnu.org Subject: Re: Transformations to add or remove inputs? Message-ID: Mail-Followup-To: Vagrant Cascadian , help-guix@gnu.org References: <87cyqy4d89.fsf@wireframe> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gzn+p1B2p0yPf8FH" Content-Disposition: inline In-Reply-To: <87cyqy4d89.fsf@wireframe> Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz 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_PASS=-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-Spam-Score: -10.58 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -10.58 X-Migadu-Queue-Id: 22358B50D X-TUID: o/uUs0CLkTPH --gzn+p1B2p0yPf8FH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2024-04-09 11:12:22 -0700, Vagrant Cascadian wrote: > In trying to verify weather adding or removing an input affects a > package, I was wondering if there are any transformations to do so, > rather than having to edit the package definition, build the guix > checkout, etc. or play games with guix time-machine. > > It seems like --with-input almost gets you there, at least for removing > dependencies, you can do something like: > > guix build --with-input=r-minimal=perl diffoscope > > But obviously, this no longer has r-minimal. > > > I'd want something almost like: > > guix build --add-input=perl diffoscope > > Or: > > guix build --remove-input=r-minimal diffoscope > > Is there a trivial way to do this sort of thing already? I do not think there is a command line argument, but -e can be (mis)used for this it seems: guix build -e '(begin (use-modules (guix packages) (gnu packages diffoscope)) (package/inherit diffoscope (native-inputs (modify-inputs (package-inputs diffoscope) (delete "r-minimal")))))' You could write a couple of helper functions utilizing the above for adding/removing (native-)inputs and use guix repl to use them in non-horrible way? I agree that having --add-input --remove-input --add-native-input --remove-native-input would be easier to use from command-line, but quick search suggest it does not exist (as you already noticed). > > > This seems similar in spirit to --with-patch, which adds a patch to the > package definition... > > > live well, > vagrant Have a nice day, Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --gzn+p1B2p0yPf8FH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmYVlRwACgkQL7/ufbZ/ waksRBAAlSYrUb/0lvFR8pmDWfNNQlDeI2u2hSZm3AeTaDiNKfgCV+cnu2Xg+lmV MwhSG4aQrA4k+bF3Nt/MbHBAK6pFxXHSDDqdUoMCDl8vkzYtFMtLOmLiiL1dssZI WMmqRG2kpj9bZCo5KgXW4BOYjRzN6v6ZcqUN+nvk9q8JkTz40RSm+dNFxUZXeCh9 Yf2XQ/AkXu0cHu6Z7CcPHxeKKHuDWMY0iwYtb6gS00lnIqO89gmCB92xpg6XNexk t/MQCwVzwSzynrIfQ8y2zgP/Z2bq7E8eTskd/gxINiVY7h5pRclVWkkJ6ulQ0j+j 6t4ioZyrdKdTHQB6s8Zm9hpfKRfNQUymCz96MseOckRBN6jiroqXtAFnRa4XKfzS LAvTWJRZAiTLxn7qpm8TAy4IvHj7Q2j5/r2XyqSuQjLo2hycshYvSUzVvU2Ez26a DAxQew8XzZy8yFLYlhwwNasPK1Vn25qczDYFndeUJyGSwiqTfrrIZqAJYKM8y1b9 GNW1gtcmmlmt8e3grh9RsarijC+PM0W/ZyaDql2DchfSklds9tidQ08qbO14KW9U wp5T7qUgzNYw3QEzDmkru5ViUe/DTcc2aLyDL+M98lefdzoKrXZ7NWirNoeEmGbQ aQdAVWe1nfvpTZi2HmLTKK79jg2apqXyXy5Ct5D1H7WBk9SlujM= =5ngU -----END PGP SIGNATURE----- --gzn+p1B2p0yPf8FH--