From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EKC9LU1/GGDGFwAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 22:23:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6CCRKU1/GGD1KAAAbx9fmQ (envelope-from ) for ; Mon, 01 Feb 2021 22:23:09 +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 404C0940250 for ; Mon, 1 Feb 2021 22:23:09 +0000 (UTC) Received: from localhost ([::1]:39970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6hbA-0004Nd-7r for larch@yhetil.org; Mon, 01 Feb 2021 17:23:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6hb4-0004NW-Hs for guix-patches@gnu.org; Mon, 01 Feb 2021 17:23:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6hb4-0004Mn-A5 for guix-patches@gnu.org; Mon, 01 Feb 2021 17:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6hb4-0004zq-6I for guix-patches@gnu.org; Mon, 01 Feb 2021 17:23:02 -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: Jonathan Brielmaier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Feb 2021 22:23:02 +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: 46214@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161221817419177 (code B ref -1); Mon, 01 Feb 2021 22:23:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Feb 2021 22:22:54 +0000 Received: from localhost ([127.0.0.1]:33473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6haw-0004zF-HV for submit@debbugs.gnu.org; Mon, 01 Feb 2021 17:22:54 -0500 Received: from lists.gnu.org ([209.51.188.17]:34118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6hau-0004z6-L1 for submit@debbugs.gnu.org; Mon, 01 Feb 2021 17:22:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6hau-0004Ms-FK for guix-patches@gnu.org; Mon, 01 Feb 2021 17:22:52 -0500 Received: from mout.web.de ([212.227.15.14]:55147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6has-0004Gh-KK for guix-patches@gnu.org; Mon, 01 Feb 2021 17:22:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1612218167; bh=9sHEKAEZK7m24Wq+9L04uqDl6zih1wpzu0F0+g8L2A8=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=pYixX+fKdkB9iDpZpUtvz4P9aR0ISjrHNmFCi71m0p6WB7ze6mgtacCU5hCOX5i1h /12+fn1xFW/CTAaJ0x9b7QoMywKqQpnTBI6GjZlbCj7oKOr3a5vT8tCnRoB0C5am1Q +UvmMlb3DFePZnW+nNU8JehR3U7k0n0jrss8SCb8= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.178.88] ([5.146.192.196]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MFcPd-1lCQ4o0rDx-00EfTp for ; Mon, 01 Feb 2021 23:22:47 +0100 References: <20432b68d12d95a23ae3713e8a904bf9dfc003e1.camel@telenet.be> From: Jonathan Brielmaier Message-ID: <1c38257e-3fcd-8386-ba36-3206b83b3efa@web.de> Date: Mon, 1 Feb 2021 23:22:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 In-Reply-To: <20432b68d12d95a23ae3713e8a904bf9dfc003e1.camel@telenet.be> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:7R3MHv+wm8Qcj+iTO/nCHC8Mi9KCPlH6kwhPfvepOVRx2Llunir GKlh4wVjiow1ukQUwwfhlKkzxA1lB2ov5t3qBo2pbr6RCjYbUG5czDI9fA0/utTcY2hLnQf jiZNIhwUOrF0uZW/BrIKeKGbqF88fQ+TqMmyb3x7VcGgQ7ylt0wyuHVW8w48PYHUlEXAkjh y5BWuKwMtCyfbEd7vH+7Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:IU/V2abwSSY=:QU/lo2dsJrsLBsxjmVvbZk JgYd9AyplAOK/KUyY0m959dTGm974Mb6Ezj/AmQfzCVmGdERHi3qQbXo9h/XJu30oQefq1mXe Um1gceN9Pv9N9pfZIrzW2WyhWcETeqfk081T912GBg7pxVhO55wJt083NXrokwq98c5HN/Tnm /bBCQb5GkbY3a5j7ekcj33kjdjC086pxvXkk6E98vHuBBdHyMNkUno46+tRZd33r44ldh5/bH bVBjhKYK3fIUwJKZyulIGClqH0udg8+X4FLNRIUGo54CjFtFJRMnvPQTUYeQ5N1nXZ+U9iQnd n63z6C0H5vQkBSXATeDapkHCzzkM/nf/n0q+/A0bcSCyvaP45PDS4NqwUZumumz8v+v4q5/s2 YM1R3HUjDfby9Sf2Mo7jegS95V/5aF7k6oZUiNIvmqCBSCmq1Uvx8eRDnyFDFCSMyHG5yMbaO DJLAZfEZc6P+tyZ6fOGu9jsWOywZOuua8/m5GcIA+T38ZBlO4XxUKk12R6oFS/l/Zqa+tgMVT 5fatq5KSL2kpP853PpYPn/itUDDGldX3yBAK6Shcw5+b/znjKdfvVW5FONRQK9hXYesWn47PT lcqWJFtTNyXPNgaFi8T9BK6pnHmb2Ia5HgybMGfb/X+DO/UnijgvfpDhTTniB4t02Z6sr/MS8 IN79rca3QlZNVYHHNuSKr2HM0l/dZmYpKTMlvPQNyi1Fxilwm0Ou0Nmnnxqe4kZB/uLDHMnOp UvydLfM0HRKNp5GCg8z+yKTDx27whQ9PQiizBuZoU3Z3v3ogc1xaf3x/a6VwvSvOotZnRFuXF Dtyu4Js15ExoRnQzq4J+tWLpyxbOEPJfVeyNL2FBRVCMQzssOst48Z9F+/9sOqt5k61tx3IQ1 b29alMPmt1tKxnPMQ0VqPFWpjG9+OaaHI/MTFktu0= Received-SPF: pass client-ip=212.227.15.14; envelope-from=jonathan.brielmaier@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=web.de header.s=dbaedf251592 header.b=pYixX+fK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=web.de (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: 404C0940250 X-Spam-Score: -1.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: ez3L5SP42Bqr On 31.01.21 12:11, Maxime Devos wrote: > Hello Guix! > > I've a proposal to make =E2=80=98guix publish=E2=80=99 somewhat extensib= le. > The draft patch allows for passing a list of =E2=80=98hooks=E2=80=99 to = guix > publish, with "guix publish --hooks=3DFILE-WITH-HOOKS.scm > --hooks=3DMORE-HOOKS.go". "guix publish" then will consult > this list of hooks at some points. > > I've defined a =E2=80=98narinfo-hook=E2=80=99, which allows adding extra > key value pairs to the generated narinfos. See the last > patch that adds a =E2=80=98hook.scm=E2=80=99 file for a silly example > that includes a random number and some arbitrary strings. 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?