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 IOZdDyqur2Hy1QAAgWs5BA (envelope-from ) for ; Tue, 07 Dec 2021 19:55:38 +0100 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 qLRCCyqur2HTPAAA1q6Kng (envelope-from ) for ; Tue, 07 Dec 2021 18:55:38 +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 ECEE913B03 for ; Tue, 7 Dec 2021 19:55:37 +0100 (CET) Received: from localhost ([::1]:49276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mufcn-0004bE-16 for larch@yhetil.org; Tue, 07 Dec 2021 13:55:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mufcd-0004b1-ES for guix-devel@gnu.org; Tue, 07 Dec 2021 13:55:27 -0500 Received: from [2607:f8b0:4864:20::d2a] (port=34470 helo=mail-io1-xd2a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mufcb-0004uK-FH for guix-devel@gnu.org; Tue, 07 Dec 2021 13:55:27 -0500 Received: by mail-io1-xd2a.google.com with SMTP id e128so154211iof.1 for ; Tue, 07 Dec 2021 10:55:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hKtUN4qKFDW7KFkXn8LwmZTYpTSp96qJctrYfpfGEM8=; b=ftQkapYd0nRft4rs5nxyoJ0R1cmidMm/CTPhCztee5Z1EcQTMTnv4GBu8ObYTDKH1c k1ohK5jO+8/PG6/dpV7druBAk0WLbNmaRW77gTu7jvNn9Siwa36eG7bC8WlchKMADw2o Us/qOh9X0FG4/eO8bPwWBmBsNeQImFuOo2V6ih9XVUFrcpg8VIYzwClz0HirWYdFnF2v agHe529UMKduCBO5xklkNFytDp+vPw8Kht9bJwEBf1xH6zKi5HQU7bp0cLXVE3whs/Av ud2xSVQ+PxIAxegV71EC8XfmRU6fDGvPKDypSnHux63oq+jFQ3qk7g8jGjYtTnanhSUV Ch6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hKtUN4qKFDW7KFkXn8LwmZTYpTSp96qJctrYfpfGEM8=; b=k1nzxl5T4VH2eEY7JTtZdIWmxfvz5NNPjm3CTKeOZqdf56vK4gzyDgq8s94hHOZhpz 1keWsnAYm7i9jqfDq4xSHhZX5afE4nAMRMyswNRcZTW3hFr6ZrN6QMKoNKgksLB+j+eE qKVYCcHcqxk7U8FfFhWlGGgLLhwikoPxjC6bhVq8uVGliq28Is6HFWTK682rH0vs6QEg 1ALb8syMXqlh3jv41DHNrCRYZUHgqdde72nbumEFDm5yipmEVte2eXIpZSxOh0cezN1u EX3EDBA20YULUgHTYwy4j87yX5nHLbSdFkqL4tulI7i0pvNkW39R8UsKlhOPKk4Zh0bK K6LA== X-Gm-Message-State: AOAM532U+fo+or2UH9WmhduMku6BuGMAj94NJEmz6oxpysKDaZ6hkNNx uBHjJJSAb8ik2D/Y7mAg4tCDGLExfrtenzaioSg= X-Google-Smtp-Source: ABdhPJx01KvQOmrxhdGKPflh7WPp7hVLGMsobdFWjXy4eqWFoY3HOQqMiNs9kajRgf4CcTBlfpHhzA0wYvnpgeveP/8= X-Received: by 2002:a02:ba90:: with SMTP id g16mr53587729jao.85.1638903324217; Tue, 07 Dec 2021 10:55:24 -0800 (PST) MIME-Version: 1.0 References: <0c3f6f91b267f1d5f06fc427c1eca03660aba8b5.camel@gmail.com> <8535ba0240bd837979c874b8fff698832a4efa24.camel@gmail.com> In-Reply-To: <8535ba0240bd837979c874b8fff698832a4efa24.camel@gmail.com> From: zimoun Date: Tue, 7 Dec 2021 19:55:12 +0100 Message-ID: Subject: Re: guix show --bibtex (was: How to compute SWHID? (with Guix/Disarchive)) To: Liliana Marie Prikler Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::d2a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2a; envelope-from=zimon.toutoune@gmail.com; helo=mail-io1-xd2a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638903338; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hKtUN4qKFDW7KFkXn8LwmZTYpTSp96qJctrYfpfGEM8=; b=aIJHeIjNQdc1GRV7A6dgP0CcPTNPpnjNtAEhtmGXvt3i5x4187t+Fcl/Gei92k8yXdNiMu PgqK4a1DJJgU4OWULrgPbYX7AJr8LvI6WfAQvNcFRzmA/7dvZMbONHNBcT97rmyA7nlZy4 4yl+Efe9JQXX2NH7g5Hc1HqNIfHGmyqH1MMJ49Rc8/fmbK1CFat8cKHrLF9LizpMMq2CXe uEM6hKI015o7P1VortUahLSTnSeXkOfvD+DtVuXtpv4dXsf4WVW6xrdM8QnscHz06X/LuG lW1tKnLF5atHTu+z3ZTvVboRFnnkt9fN5uoXcUKZ27wKA5OOzup2vR6DVPdFMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638903338; a=rsa-sha256; cv=none; b=iTWtmFHOubQouqYIVpJO/5rUoqPSvOcMQv5BTsWUpdBBh+BSNgCPo+utdQnNQttlphhIve veGn0lXe7cYUUutMoyDllsAxC8F6RVtToHkivsZemxi07ewP37AKvxvMPBhJt3joKI9vzW xcraJq8gcyhpIeM1ItjkK35TMGIbWs2YtltrjsvBbYl96rrJKtaZIF4DQFoAbSlVu26FHC ONyrjKfocozThcPs7M13DJ8A6eDfDVAk6hjkg9Fhrd6oMsVon9EulWCm4AfJa+T5LiGTHn wSlMyjhx3aXIIEOMIZYIF+SgV50mYmYhB5F2unKkSj2GWVaaln6zacI6rZoIzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ftQkapYd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -2.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ftQkapYd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: ECEE913B03 X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: fu8DV48oyYeX Hi, On Tue, 7 Dec 2021 at 19:20, Liliana Marie Prikler wrote: > Am Dienstag, den 07.12.2021, 18:39 +0100 schrieb zimoun: > > --8<---------------cut here---------------start------------->8--- > > $ cat bibtex.tmpl > > @example{ {{name}}@{{version}}, > > title = {{name}}, > > url = {{home-page}}, > You typo'd on homepage here, the dash is superfluous. Yes, thanks! :-) > > license = {{license}}, > > abstract = {{synopsis}}, > > swhid = {swh:1:...}, > > repository = "WE HAVE THAT INFO", > I too don't like that origin information is missing from `guix show'. > Can we fix that somehow? I think it is an easy fix but one could raise it violates FSDG. I do not want to open the case because from my understanding, display this info by "guix show" is *strictly* equivalent to have an option returning true upstream, instead of Guix modified one; discussed at length. :-) > > author = "?????", > We don't capture that in Guix, you'd have to look elsewhere IIUC. Yep. The meaning of that ???? was: please, do not forget to complete before include that to your paper. :-) > > date = "?????", > January 1st, 1970, what else? The date of publication. Guix do not capture this information either. > I think there are a few things that'd need fixing in recutils itself. I agree. > 1a. There needs to be a way of escaping {} in templates -- or at least > I haven't found one. Me neither. > > 1. SWHID is not computed by "guix show". > Is that a Guix concern, though? We also don't have author and date, so > you'd have to shell out either way. Yes. It is my main motivation for such feature. a) Have something almost compliant with software-bibtex, which requires swh:1:... b) Extract also an entry providing somehow "guix describe" as software-bibtex The point a) is the key point, IMHO. Otherwise, a trivial template (or any half-baked manual converter fits the bill; I previously did that in another life. :-)) Well, that's why, I agree with Ludo and this feature should be external to Guix. For instance, an extension available with "guix install", as GWL. > > 2. recutils is not installed by default, IIRC. > I don't think that's too hard if you use guix shell (or environment) > inside your scientific workflow -- just add recutils to emacs-citar and > whatever else you only need for scientific writing :) Yeah for sure. I would prefer to have an extension, say "guix-publishing", available as a regular package, then "guix publishing " would allow to export, check SWH, and other stuff I often do when preparing a publication. > > As much fields as possible. As the example above more or > > less. Well, use bibtex-software as decribe here: > > > > https://mirrors.chevalier.io/CTAN/macros/latex/contrib/biblatex-contrib/biblatex-software/software-biblatex.pdf > Uhm, what exactly should I extract from this manual? Well, I just wanted to point what I have in mind, for the interested reader not knowing bibtex-software. Cheers, simon