From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ECE2DJdLm1+nXQAA0tVLHw (envelope-from ) for ; Thu, 29 Oct 2020 23:09:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oE4ECJdLm19eKAAAbx9fmQ (envelope-from ) for ; Thu, 29 Oct 2020 23:09:11 +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 975A79400D3 for ; Thu, 29 Oct 2020 23:09:10 +0000 (UTC) Received: from localhost ([::1]:44466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYH2a-00076w-Ex for larch@yhetil.org; Thu, 29 Oct 2020 19:09:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYH2V-00076l-49 for guix-patches@gnu.org; Thu, 29 Oct 2020 19:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYH2U-00065b-Om for guix-patches@gnu.org; Thu, 29 Oct 2020 19:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYH2U-0000KH-Kj for guix-patches@gnu.org; Thu, 29 Oct 2020 19:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44321] [PATCH 0/6] Adding a (guix transformations) module Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Oct 2020 23:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44321 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44321@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16040129211224 (code B ref -1); Thu, 29 Oct 2020 23:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Oct 2020 23:08:41 +0000 Received: from localhost ([127.0.0.1]:55277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYH28-0000Jg-UD for submit@debbugs.gnu.org; Thu, 29 Oct 2020 19:08:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:33200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYH26-0000JY-8j for submit@debbugs.gnu.org; Thu, 29 Oct 2020 19:08:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYH26-00074b-32 for guix-patches@gnu.org; Thu, 29 Oct 2020 19:08:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49449) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYH25-00062W-3Y; Thu, 29 Oct 2020 19:08:37 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=50406 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kYH24-00077y-Io; Thu, 29 Oct 2020 19:08:36 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Fri, 30 Oct 2020 00:08:31 +0100 Message-Id: <20201029230831.14456-1-ludo@gnu.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: ffbDh4xrRvCH Hello Guix! This patch series is to make ‘options->transformation’ public, mostly so that users can directly translate package transformation options to code they can use in manifests. The second goal of the patch is to have a new “Defining Package Variants” section that gives an introduction to this topic with all the relevant pointers. That’s it! Thoughts? Ludo’. PS: I swear this is the last non-trivial change I’d submit for 1.2. :-) Ludovic Courtès (6): guix build: 'package-with-source' no longer takes a 'store' parameter. guix build: Remove unnecessary (replacement #f). guix build: 'options->transformation' no longer takes a 'store' parameter. guix build: Move transformation options to (guix transformations). transformations: Raise '&formatted-message' exceptions instead of 'leave'. doc: Add "Defining Package Variants" section. Makefile.am | 3 +- doc/guix.texi | 278 +++++--- guix/scripts/build.scm | 544 +-------------- guix/scripts/environment.scm | 3 +- guix/scripts/graph.scm | 13 +- guix/scripts/install.scm | 1 + guix/scripts/pack.scm | 5 +- guix/scripts/package.scm | 5 +- guix/scripts/upgrade.scm | 1 + guix/transformations.scm | 620 ++++++++++++++++++ ...{scripts-build.scm => transformations.scm} | 267 ++++---- 11 files changed, 976 insertions(+), 764 deletions(-) create mode 100644 guix/transformations.scm rename tests/{scripts-build.scm => transformations.scm} (63%) -- 2.28.0