From patchwork Thu Jan 21 11:37:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 26536 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A7FB927BC16; Thu, 21 Jan 2021 11:39:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E9C2727BC17 for ; Thu, 21 Jan 2021 11:39:09 +0000 (GMT) Received: from localhost ([::1]:52280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2YIv-0004ZF-4j for patchwork@mira.cbaines.net; Thu, 21 Jan 2021 06:39:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2YIo-0004Xs-Ul for guix-patches@gnu.org; Thu, 21 Jan 2021 06:39:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2YIo-0004ce-Mt for guix-patches@gnu.org; Thu, 21 Jan 2021 06:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l2YIo-0006fs-JW for guix-patches@gnu.org; Thu, 21 Jan 2021 06:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46017] [PATCH 0/2] scripts: system: Accept records as input. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Jan 2021 11:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46017 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46017@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161122908925596 (code B ref -1); Thu, 21 Jan 2021 11:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jan 2021 11:38:09 +0000 Received: from localhost ([127.0.0.1]:56977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2YHx-0006el-Ab for submit@debbugs.gnu.org; Thu, 21 Jan 2021 06:38:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:45072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2YHv-0006ed-5A for submit@debbugs.gnu.org; Thu, 21 Jan 2021 06:38:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2YHu-0003zA-UG for guix-patches@gnu.org; Thu, 21 Jan 2021 06:38:06 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40642) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2YHu-0004Dp-Ni for guix-patches@gnu.org; Thu, 21 Jan 2021 06:38:06 -0500 Received: from [2a01:e0a:19b:d9a0:98b7:b002:9499:5e2c] (port=44372 helo=localhost.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l2YHs-0006T0-IQ; Thu, 21 Jan 2021 06:38:05 -0500 From: Mathieu Othacehe Date: Thu, 21 Jan 2021 12:37:51 +0100 Message-Id: <20210121113751.72613-1-othacehe@gnu.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Othacehe Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello, Here is a patch adding support for records as input of "guix system image" command. This has been discussed here: https://issues.guix.gnu.org/45933. It would be nice to also provide some documentation about that feature. I have delayed it because I felt the API was not stable enough. Maybe now is the time. Joshua is proposing a Cookbook patch that could be a first step. Then, I'll try to provide a proper description of the record and the associated commands in the documentation. Thanks, Mathieu Mathieu Othacehe (2): image: Export image? procedure. scripts: system: Accept records as input. gnu/image.scm | 1 + gnu/system/images/hurd.scm | 3 + gnu/system/images/novena.scm | 3 + gnu/system/images/pine64.scm | 3 + gnu/system/images/pinebook-pro.scm | 3 + guix/scripts/system.scm | 128 ++++++++++++++--------------- tests/guix-system.sh | 7 +- 7 files changed, 80 insertions(+), 68 deletions(-)