From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QHEVFjHslGL2GgAAbAwnHQ (envelope-from ) for ; Mon, 30 May 2022 18:09:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kI/yFTHslGIrbAAAauVa8A (envelope-from ) for ; Mon, 30 May 2022 18:09:21 +0200 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 239A614E0B for ; Mon, 30 May 2022 18:09:21 +0200 (CEST) Received: from localhost ([::1]:43170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvhxI-0004oz-9U for larch@yhetil.org; Mon, 30 May 2022 12:09:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhsj-0008C1-OR for guix-devel@gnu.org; Mon, 30 May 2022 12:04:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhsj-0006cY-4S; Mon, 30 May 2022 12:04:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=L99Pv8KiRdhYVNsKgb3lhlB8ZQgIme3zN1pLqvPJysg=; b=Pcx8z/le01DfimeBAekT +VtFwJM1hAbifEbaJ+AaPbGoZS+/xaoZQLn9SN9KJusGheMqJiMd1u92X9xXlVTg4RpLnpoM7NOD5 IiQce+0Savu+BuvkRe9PBDfzP/DZNDhNyVeVfQvxkc9sGnRUQgvxI7y3Pjl/qsUhjoIAYUArGliRA InkwJuM9kwGgi0hEf+Yc9Bmtzik17Ni99pQ3kTaJkRvwvcBcSzQd24CANm79JkiAYkciOu7PEpxQn MiQC/R/2HnJYliUYWHn2HDbtGyhxbNkSZaIVOW89WT9iVIo3GCtjWZpbp8cWuiAs1TAADEOejlSxc 0bhoPwhK4SUbTg==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=59566 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhsi-0006z7-Mf; Mon, 30 May 2022 12:04:36 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Reily Siegel Cc: guix-devel@gnu.org Subject: Re: Breaking change: Make 'description' of mandatory References: <87leuospz5.fsf@reilysiegel.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Primidi 11 Prairial an 230 de la =?utf-8?Q?R=C3=A9vo?= =?utf-8?Q?lution=2C?= jour de la Fraise X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 30 May 2022 18:04:33 +0200 In-Reply-To: <87leuospz5.fsf@reilysiegel.com> (Reily Siegel's message of "Thu, 26 May 2022 09:38:38 +0200") Message-ID: <87h7570zxq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653926961; 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=L99Pv8KiRdhYVNsKgb3lhlB8ZQgIme3zN1pLqvPJysg=; b=b9/mr6gUashULKEkOWL0OS37LXVG/u76lQV5z1ufhnF77rDxI6WqkBFYdRNY8GvDXzrUPL cT14y5kLvMuWYkeGT8mFt7xFL4o7mNs6WSyx8EfzQW1EE/3/r52WlZFBPmwtJMdquiAgT7 rYTuRqC22jb/0CGCWLO4Pi2dGWFoSm8YntMt1AId746kucvPL/m9kpLHyfI1z8T8cdKpli W+uL6kGvblhXWk+oVCmVZuTLBOGJx76wAx5FE1Ekul0+nhnNMGeB9sOZVgXyENX/oq5gJT 2/Aw/7J0E4SNWRrnNt+kdEcF8LRS2pJ4vl6aJ4RY1sMjH1PQhq3SgTTfcaP6Ow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653926961; a=rsa-sha256; cv=none; b=bf9rnrRzI5exWE+w4/zl7sY1yBST8rVu8nOPcWm6GnDyzXMhuMHSkYrADex45R+ip3FdM/ Zd8urbDQ/g+VvuqNy6ai47fC9WVlBPu/qjGLL5xGlznYMmS/D+wUCahTcwn518zjbkl9Kl eGMUaVSy0OrpTvFuSiUweWeWp1yr0a2DlbAg/V8Js+PDjerMDoDhNQo2F8tpvP8GkKx7PS newrku8P8uKmqH+2N24pem06VGe6pqNYeQId664mI2K/Bb8z6wbSZ5NvAEsozB0FwS7rK1 pBJrFY0gTJS/ZCyOMMyIKtQOe8JRB6uUf/0ijLXN+J1CP/2azffRi8g2MCdTRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="Pcx8z/le"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="Pcx8z/le"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 239A614E0B X-Spam-Score: -7.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9xkl1i9G27cf Hello Reily, Apologies for the breakage cause by this change. Reily Siegel skribis: > The problem arises when a certain feature needs to extend two services > to be useful: take configuration of an emacs package. It must first > extend (in the case of Guix home) home-emacs-service (from RDE channel) > with the emacs configuration to be inserted to init.el, and > home-profile-service-type, to add the emacs package to the profile. It > seems like simple-service /would/ be a good option here, except as best > I can figure out it can only extend one service. So instead, I create a > new service-type, perhaps named my-emacs-feature-configuration-service, > which takes no value and has no extension mechanism, but only serves to > extend multiple other "real" services. OK, that sounds reasonable to me. > This change (and the discussion at https://issues.guix.gnu.org/55404) > indicates to me that all service-types, no matter where they are > implemented, are meant to be consumed by a generic user, not used in a > one-off way like my configuration does. I=E2=80=99m not sure what you mean by =E2=80=9Cgeneric user=E2=80=9D. The = focus in the discussion above was on all the service types defined within the Guix repo, but that doesn=E2=80=99t mean one cannot define service types elsewhe= re. If you=E2=80=99re defining one-off service types, perhaps adding a =E2=80= =98description=E2=80=99 feels overkill. > So, to sum up, I have a few questions: > > 1. Is service-type meant for use in individual user configurations? Sure, if it=E2=80=99s useful, why not: it=E2=80=99s part of the public API. > 2. Is there an equivalent function to simple-service that takes multiple > service/value pairs that I have missed? > (e.g., (simple-service-like service-a val-a service-b val-b ...) > or (simple-service-like (list service-a val-a service-b val-b))) No, but we could define one, or perhaps just extend =E2=80=98simple-service= =E2=80=99 to three or more arguments instead of just three? > 3. If the answer to 2 is no, does it make sense to extend simple-service > to work with multiple service extensions, or is there some reason for > only extending one service at a time? The only reason =E2=80=98simple-service=E2=80=99 extends a single service t= ype is that it seemed to be a common use case back then. Thanks for your feedback! Ludo=E2=80=99.