From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qDd4AkPF3WBjLQAAgWs5BA (envelope-from ) for ; Thu, 01 Jul 2021 15:38:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IArTOULF3WDaWwAA1q6Kng (envelope-from ) for ; Thu, 01 Jul 2021 13:38:10 +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 9C4C4A8DA for ; Thu, 1 Jul 2021 15:38:10 +0200 (CEST) Received: from localhost ([::1]:58092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lywtN-0006IU-Mc for larch@yhetil.org; Thu, 01 Jul 2021 09:38:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lywtG-0006IJ-H4 for guix-patches@gnu.org; Thu, 01 Jul 2021 09:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lywtG-0005rB-9p for guix-patches@gnu.org; Thu, 01 Jul 2021 09:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lywtG-0001gS-5k for guix-patches@gnu.org; Thu, 01 Jul 2021 09:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49288] [PATCH] gnu: services: Export provenance-entry and sexp->channel Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Jul 2021 13:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49288 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Andrew Tropin Cc: 49288@debbugs.gnu.org Received: via spool by 49288-submit@debbugs.gnu.org id=B49288.16251466536433 (code B ref 49288); Thu, 01 Jul 2021 13:38:02 +0000 Received: (at 49288) by debbugs.gnu.org; 1 Jul 2021 13:37:33 +0000 Received: from localhost ([127.0.0.1]:59994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lywsn-0001fh-Ea for submit@debbugs.gnu.org; Thu, 01 Jul 2021 09:37:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lywsl-0001fU-Hc for 49288@debbugs.gnu.org; Thu, 01 Jul 2021 09:37:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51468) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lywsg-0005R3-9k; Thu, 01 Jul 2021 09:37:26 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=36610 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lywse-00055N-UM; Thu, 01 Jul 2021 09:37:26 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <871r8j4rer.fsf@trop.in> Date: Thu, 01 Jul 2021 15:37:23 +0200 In-Reply-To: <871r8j4rer.fsf@trop.in> (Andrew Tropin's message of "Wed, 30 Jun 2021 12:45:32 +0300") Message-ID: <877diakve4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625146690; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=LyQzXJ8bWq9TfJMys13I2JrZnwukUDwAl6uk5uk4PTg=; b=nL0ODqtB+AiCo4M/RT2/mJWTJYEYcfq9APYbRtpPA9ppQ1juYyy3wIRpUhuBfOwsU0zGWB JplYM9PNzCbxTeWvBWiQULhZ1OQv2rh4KyYQFmDfomi4zCO//nuK/CRnyZLTdqScB9fh8d UWgjbDBgsOnjkkz438S/QF+9WIjlsLKidhRFJOSWvsnMgKIQNogU6W8IWQmw/qWj8gYqHP nKrkMQak6vSZHuiydSUy78GW1rK+5YFnVKBU7HrPmU0302IzfKhXCihREpvyKdyoqx+8MW +PNrDzM/1bi/3Pk8z2LKonlQMJkS/npwvcDkja0DW3xX2dshNDegHQqvsc9wpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625146690; a=rsa-sha256; cv=none; b=fVrqLGajj//UrmMapDute1src0dnExQd6B4aiJbmT2e8itOPSB7AOz1oaaJuQZFXcytCsT Lpvz+yiKh2K8yS0u/xun2EkzvQHRXGVRGkYyxLdVpIj8EksnmS7qW3+NvJ+wZWsH26Fpv0 Ku1c9A5NtuqEXscAPlyYZmmpAcdsYJgV45SpdlMwB+huBoROXeXymFlwpkamL7FGeZauhv rx57/Ht9Gi1hvfjTuB5IGWv30U+r4qFTNzt6ar55eGJ4Kn4k6uJ5bvU3NbXMK27x3CW6QF pohycD8JD1pFaQDi3A/RkMDgLeF3oKZCUE/0V1Ax9bqEo9UTERfAHXjoxhwXIA== ARC-Authentication-Results: i=1; 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-Migadu-Spam-Score: -2.92 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-Migadu-Queue-Id: 9C4C4A8DA X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: h9Ounua18ABs Hi! Andrew Tropin skribis: > These functions are need for Guix Home. > --- > For now functions are copy pasted, but it seems better to reuse > existing functions. > https://git.sr.ht/~abcdw/rde/tree/057888b2604b05d555fd1b67f3d356644f9a13= 4d/gnu/home-services.scm#L418 >=20=20 > gnu/services.scm | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/gnu/services.scm b/gnu/services.scm > index 8d413e198e..53b358c63b 100644 > --- a/gnu/services.scm > +++ b/gnu/services.scm > @@ -91,6 +91,9 @@ > ambiguous-target-service-error-service > ambiguous-target-service-error-target-type >=20=20 > + provenance-entry > + sexp->channel This =E2=80=98sexp->channel=E2=80=99 exists =E2=80=9Cfor historical reasons= =E2=80=9D. Could you use (@ (guix channels) sexp->channel) instead, together with =E2=80=98channel-instance->sexp=E2=80=99? Actually, could you define it like so: --8<---------------cut here---------------start------------->8--- (define home-provenance-service-type (service-type (inherit provenance-service-type) (extensions (list (service-extension home-service-type (service-extension-compute (first (service-extensions provenance-service-type)))))) (default-value #f))) --8<---------------cut here---------------end--------------->8--- More generally, perhaps you could have a procedure that takes a service type and =E2=80=9Crewires=E2=80=9D it so that it extends =E2=80=98home-serv= ice-type=E2=80=99 instead of =E2=80=98etc-service-type=E2=80=99, say. Does that make sense? Ludo=E2=80=99.