From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0D7mKHnvUGCcVAAA0tVLHw (envelope-from ) for ; Tue, 16 Mar 2021 17:48:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MKSsJHnvUGBteQAAB5/wlQ (envelope-from ) for ; Tue, 16 Mar 2021 17:48:41 +0000 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 49DFA13E9C for ; Tue, 16 Mar 2021 18:48:41 +0100 (CET) Received: from localhost ([::1]:50324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMDo8-0003R2-Aw for larch@yhetil.org; Tue, 16 Mar 2021 13:48:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMDPg-0006kl-54 for guix-devel@gnu.org; Tue, 16 Mar 2021 13:23:24 -0400 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:33275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMDPd-0002T3-53; Tue, 16 Mar 2021 13:23:23 -0400 Received: by mail-qk1-x730.google.com with SMTP id l4so36040447qkl.0; Tue, 16 Mar 2021 10:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ZI1A/bMMvvfKMuhu0yTrrUjpcFvnBbu65fPxyK98AD4=; b=g1upVPNloxR0uDPZtdYcaFrXYtL2giISXXN83r/x9TxL6BoC96LBfg01x07oSTCWGi vNqOVwevPeHyXVFz1Hw/i1w4ouchI/6xyVeriYS3EqCj139nwIfKiq4oHXcOEdQjVTwL ZqGqEWhBF5e7MSyDFk11HVY40onlexjjlvHEMdqcYfHk47LfJ/3cPxD2LqXQ4gU1w95n 1w8Lm3RF1JrzvF7bBMP9fjwRwUmKLglUisLLFZU9Bve7uKHQltfu2i4sPIvuLKsmhSQl vONQ4fETKTLgxhwaB+5qXKL75pEHOyYj0bIVIKvlFoQ+i8IvtTXuKV5cXBfj0CCWrhDg iQ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZI1A/bMMvvfKMuhu0yTrrUjpcFvnBbu65fPxyK98AD4=; b=F6ycuEGrVlIpcqUIpZRWdd6FNAvmOUYhxNMezxxPXGvPj60roVIN10b2rbrmw7iYN4 GAFthNjd6xBFuY5fPOuM/TjNg8F/DbnxJyn0UH2/KJur9yRAbpSq29WYiSMlHgxcermI PNTVt1v6d8FbVCET80DXOwI6guowgghl/pF7ivhRBTj5v/24DL+TA5KcZ5qVoop2v0Pa DlvIyO/pYNa242TVfQ6qcYLF8uTGEiNEA5E0K5Hx6837oit/g6/d7hzkJnffjL2urcvb uz3sKzLM838FzAxnCL0ar38ATMzKjkioN185OSwPiW3k2xue1Em7odJpvQV11CqT9e6/ YrJg== X-Gm-Message-State: AOAM533SEG6Wxk5tpUrIs7nnCgwmFnhYcIc5KadOEZ8xwOEqZ/IXsyRT I/KfoRc1GM+vGSd0sH6a2XzHOoLVsnvb1p7mT+dQiBBFDGo= X-Google-Smtp-Source: ABdhPJxX6KhRf+uN4wr4Z/5fVTXb0zFzXSnEme8q7ojahlv7a6M7a9PE/fxvEFfgmORi5fVa9hNGp3sIrlUScuGyE4k= X-Received: by 2002:a37:a912:: with SMTP id s18mr133430qke.80.1615915399690; Tue, 16 Mar 2021 10:23:19 -0700 (PDT) MIME-Version: 1.0 References: <87tupb8nzs.fsf@gnu.org> <87blbjt5es.fsf@yoctocell.xyz> In-Reply-To: <87blbjt5es.fsf@yoctocell.xyz> From: zimoun Date: Tue, 16 Mar 2021 18:23:08 +0100 Message-ID: Subject: Re: [bug#47163] Using package transformations declaratively (was: [bug#47163] [PATCH] refresh: Add '--installed' option.) To: Xinglu Chen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=zimon.toutoune@gmail.com; helo=mail-qk1-x730.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel , 47163@debbugs.gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615916921; 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=ZI1A/bMMvvfKMuhu0yTrrUjpcFvnBbu65fPxyK98AD4=; b=R8lCFHeMsvuKkZTHyGG3t51JDgNazeuOiwkkf0Z1TH4sFo6iyCTt1Xy8d3NiFZgE8acsCI zaN6jF6GN2sD2XStTyHHN6sNFCZX0FT3GLAKwCcr4ZvMAnoRjO48WWq/3w/uo/Ep4MKe4q Eayg6X3hl1mug1fWhaKGhsgGznkxkD0fhwmIUCTDHQjvFLI0abNRiF2sTFkyChzUQpgLKL xbUPkr788oh3nLn8sr6vy7/GpOA7qx0cm4qtzeQofSfcy2YhwRKFaXIQs4qCyFfZZrhkpA YM9CDZE4TGsjOIGZCKCdJAUQYUrdwAc7FsesPHWLmlK4WmR3Vzok+oMYeGpmWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615916921; a=rsa-sha256; cv=none; b=c/M54BA6DzGfYR8fs2Sj3cSTGM3fyxrB/yBXQ+hMmvs3paUPHRbF1oRJ1fDayo+GRDsZvc lVHrRxR6WyZ/0/AQXPmLy4LOzAyhG2tElj6Lut8HLMbe5O4Yo7KOYujSg3Q6Ch63mGncz7 M30SOyY7Bi0laUm1vUddFDD+DrA8ESuE0+rJUwDJkMkrKBtsUr+jmmz9X3TPIXW4uUgH5a GOxCqARnoLzSwDCipAu2GV2p33uGGKa04SnhmPYmeyJOwgooU80N0sZTjBKwDKKH4hGs9k Bx4T6IG75lI771ugIBf+b88JWC3OrQOW2HBcamVo8jSH6BmvPA/IuR8f+0B4Yw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=g1upVPNl; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: 0.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=g1upVPNl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 49DFA13E9C X-Spam-Score: 0.20 X-Migadu-Scanner: scn0.migadu.com X-TUID: bNwmtrorPt5N Hi, On Tue, 16 Mar 2021 at 17:46, Xinglu Chen wrote: > On Tue, Mar 16 2021, Ludovic Court=C3=A8s wrote: > > > You may also like the new =E2=80=98--with-latest=E2=80=99 package trans= formation > > option. :-) > > 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=3Dgcc-toolchain@8")))) (packages->manifest (list (transform1 (specification->package "hello")))) --8<---------------cut here---------------end--------------->8--- HTH, simon