From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 16 14:35:49 2021 Received: (at 47163) by debbugs.gnu.org; 16 Mar 2021 18:35:49 +0000 Received: from localhost ([127.0.0.1]:41061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMEXl-0008UR-Kz for submit@debbugs.gnu.org; Tue, 16 Mar 2021 14:35:49 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:37220 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMEXk-0008UE-2r for 47163@debbugs.gnu.org; Tue, 16 Mar 2021 14:35:48 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1615919742; bh=cZGhoYlCgM/ps8lJM9j6sstBRxg3UROauFaSoB3+UAE=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=TvvavxRjrkRJJy1vwn2NpaZJ/fGKdCFHGz9pVzP2sE3m51UHYdIKk5baxjvMkpe0j UCBvW4X0puuZzgF97MxmfdfHHkFZnT+fzQ37b+Pq31Xdcwjs7MM3NSIdQLeixkxwrC C2DMuy5I/GJvBBhjyX2xSeRnIy0Y+zQm8swuBNgY= To: zimoun Subject: Re: [bug#47163] Using package transformations declaratively (was: [bug#47163] [PATCH] refresh: Add '--installed' option.) In-Reply-To: References: <87tupb8nzs.fsf@gnu.org> <87blbjt5es.fsf@yoctocell.xyz> Date: Tue, 16 Mar 2021 19:35:41 +0100 Message-ID: <87eegfrloi.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, Mar 16 2021, zimoun wrote: >> I really like package transformations but is there a way to use specify >> them with Guile so I can use them with `guix home`[1] or in manifests? > > There is several ways to have package transform [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: 47163 Cc: Guix Devel , 47163@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, Mar 16 2021, zimoun wrote: >> I really like package transformations but is there a way to use specify >> them with Guile so I can use them with `guix home`[1] or in manifests? > > There is several ways to have package transform [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD On Tue, Mar 16 2021, zimoun wrote: >> I really like package transformations but is there a way to use specify >> them with Guile so I can use them with `guix home`[1] or in manifests? > > There is several ways to have package transformations at the manifest > level. One is: > > --8<---------------cut here---------------start------------->8--- > (use-modules (guix transformations)) > > (define transform1 > (options->transformation > '((with-c-toolchain . "hello=gcc-toolchain@8")))) > > (packages->manifest > (list (transform1 (specification->package "hello")))) > --8<---------------cut here---------------end--------------->8--- Cool, thanks for the help.