From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aB7uA6ocLGBQQQAA0tVLHw (envelope-from ) for ; Tue, 16 Feb 2021 19:27:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OPs2O6kcLGBaZQAAbx9fmQ (envelope-from ) for ; Tue, 16 Feb 2021 19:27:37 +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 755B72AA25 for ; Tue, 16 Feb 2021 20:27:37 +0100 (CET) Received: from localhost ([::1]:40610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC60W-0008DD-L7 for larch@yhetil.org; Tue, 16 Feb 2021 14:27:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC5zy-0007wt-9P for guix-patches@gnu.org; Tue, 16 Feb 2021 14:27:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lC5zy-0006jx-1d for guix-patches@gnu.org; Tue, 16 Feb 2021 14:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lC5zx-0001wD-UI for guix-patches@gnu.org; Tue, 16 Feb 2021 14:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46214] [PATCH] DRAFT: narinfo hooks for =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?publish=E2=80=99?= Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Feb 2021 19:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46214 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jonathan Brielmaier Cc: 46214@debbugs.gnu.org Received: via spool by 46214-submit@debbugs.gnu.org id=B46214.16135036097432 (code B ref 46214); Tue, 16 Feb 2021 19:27:01 +0000 Received: (at 46214) by debbugs.gnu.org; 16 Feb 2021 19:26:49 +0000 Received: from localhost ([127.0.0.1]:41616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC5zk-0001vn-Vc for submit@debbugs.gnu.org; Tue, 16 Feb 2021 14:26:49 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:46814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC5zi-0001vd-8Z for 46214@debbugs.gnu.org; Tue, 16 Feb 2021 14:26:48 -0500 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by laurent.telenet-ops.be with bizsmtp id VvSj2400V0mfAB401vSkvs; Tue, 16 Feb 2021 20:26:44 +0100 Message-ID: <82868c60682e9134acbd98bfe450ea0e42804096.camel@telenet.be> From: Maxime Devos Date: Tue, 16 Feb 2021 20:26:39 +0100 In-Reply-To: <1c38257e-3fcd-8386-ba36-3206b83b3efa@web.de> References: <20432b68d12d95a23ae3713e8a904bf9dfc003e1.camel@telenet.be> <1c38257e-3fcd-8386-ba36-3206b83b3efa@web.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-aKHNO2CdfyMDgf8SF5WP" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1613503604; bh=QYmpTdF5hpoOd4kSe3nB+sdzQ9VciKxrgJpopkQBgzE=; h=Subject:From:Reply-To:To:Cc:Date:In-Reply-To:References; b=BZwTxh8/wZY/w6v8cyVLSxUrRnW/EyYfWqUwGh2z2NBzreHmUCQIhWYSWfHGe7c3T oi/vJ/6cuszbynd1rL4lxt4nVP/VSrijiGuJb3dJ1/VT5EWWEDHJlHkU1BfI0dgsCu OBnUi9DS3XX4X1N646o9xfItLZWrlQMOLN9AyZgMpWYy8FgSUv0Waj0zMw4lhfL2jB v0zUF3WasvswHhe8Y5Tb1chfeJrYyfqmctEnqpPpDamqqzqLv7Rnqd4MXkwUYO8UUF nWWgfshUBenEaB6xR8xksyCau5IcheRTpR6eqaaossDNeudlkz0bXirAHQmlMDiWC5 zWWQE+9u0EN1g== 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: , Reply-To: 46214@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="BZwTxh8/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: 755B72AA25 X-Spam-Score: -3.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: s0sdE8joigAk --=-aKHNO2CdfyMDgf8SF5WP Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry for the late response, for some reason your mail didn't end up in my inbox. A reminder for what my goal is: I am attempting to serve substitutes via a P2P system. Ludovic has a patch for substitutes over IPFS, myself I'm planning to write a patch for substitutes over GNUnet. This patch aims to define a simple =E2=80=98hook=E2=80=99 into =E2=80=98guix publish=E2=80=99 for addin= g the IPFS or GNUnet URI. On Mon, 2021-02-01 at 23:22 +0100, Jonathan Brielmaier wrote: >=20 > On 31.01.21 12:11, Maxime Devos wrote: > > [...] > > I've defined a =E2=80=98narinfo-hook=E2=80=99, which allows adding extr= a > > key value pairs to the generated narinfos. [...] > I didn't looked really into the code, but would this also allow hooks > like baking the nar-file and write it into the cache? Or is it only for > the narinfos? This patch is only for the generation of the narinfos. (I would like to eventually write a hook that publishes the store item via GNUnet and embeds the URI in the narinfo, but there isn't yet a corresponding hook mechanism on the substituter side.) That said, other hook types could be defined with additional patches, though I don't know what use that would serve. Greetings, Maxime. --=-aKHNO2CdfyMDgf8SF5WP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYCwcbxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iAWAQC3m9thtJqYVq0KWVPfn8K9QM/B IUIftGzTf33gAt7H4wD+I74YZNoky5A4Sm2PLu1XAUPNLKOjFVd743JGmadyWww= =jrR8 -----END PGP SIGNATURE----- --=-aKHNO2CdfyMDgf8SF5WP--