From patchwork Sat Oct 7 15:57:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 1856 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 E901527BBEA; Sat, 7 Oct 2023 17:37:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E9DE727BBE2 for ; Sat, 7 Oct 2023 17:37:08 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpAIJ-00078B-Gp; Sat, 07 Oct 2023 12:36:47 -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 ) id 1qpAIG-00077f-Ta for guix-patches@gnu.org; Sat, 07 Oct 2023 12:36:45 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qpAIE-0007tY-JC for guix-patches@gnu.org; Sat, 07 Oct 2023 12:36:42 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpAIX-0006El-JQ; Sat, 07 Oct 2023 12:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63985] [PATCH v4 0/5] SRFI-171 based improvements for define-configuration Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Sat, 07 Oct 2023 16:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63985 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63985@debbugs.gnu.org Cc: Bruno Victal , Maxim Cournoyer X-Debbugs-Original-To: guix-patches@gnu.org, 63985@debbugs.gnu.org X-Debbugs-Original-Xcc: Maxim Cournoyer Received: via spool by submit@debbugs.gnu.org id=B.169669661923966 (code B ref -1); Sat, 07 Oct 2023 16:37:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Oct 2023 16:36:59 +0000 Received: from localhost ([127.0.0.1]:55806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpAIV-0006ET-HG for submit@debbugs.gnu.org; Sat, 07 Oct 2023 12:36:59 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpAIT-0006EB-HU for submit@debbugs.gnu.org; Sat, 07 Oct 2023 12:36:57 -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 ) id 1qpAI1-00075P-To for guix-patches@gnu.org; Sat, 07 Oct 2023 12:36:29 -0400 Received: from smtpm2.myservices.hosting ([185.26.105.233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpAI0-0007ss-8b for guix-patches@gnu.org; Sat, 07 Oct 2023 12:36:29 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm2.myservices.hosting (Postfix) with ESMTP id CA9CB20F17; Sat, 7 Oct 2023 18:36:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 1476980097; Sat, 7 Oct 2023 17:57:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id AF-K2Uh87NNz; Sat, 7 Oct 2023 17:57:47 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 789EF80060; Sat, 7 Oct 2023 17:57:47 +0200 (CEST) From: Bruno Victal Date: Sat, 7 Oct 2023 16:57:13 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=185.26.105.233; envelope-from=mirai@makinata.eu; helo=smtpm2.myservices.hosting X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Notable changes since v3: * Reduced series scope for SRFI-171 related changes and documentation improvements. * Added docstrings. Note: docstring for `serialize-configuration' lifted from guix.texi. * Addressed feedback from v3. Bruno Victal (5): services: configuration: Simplify normalize-extra-args. services: configuration: Use transducers within serialize-configuration. services: fstrim-service-type: Serialize with SRFI-171 transducers. doc: Rewrite define-configuration. services: configuration: Add some commonly used predicates. doc/guix.texi | 108 +++++++++++++------------------ gnu/services/audio.scm | 7 +- gnu/services/configuration.scm | 81 +++++++++++++++++------ gnu/services/linux.scm | 11 ++-- gnu/services/telephony.scm | 49 ++++++-------- tests/services/configuration.scm | 6 +- 6 files changed, 136 insertions(+), 126 deletions(-) base-commit: b566e1a98a74d84d3978cffefd05295602c9445d