From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QD0YEPylr2HfsgAAgWs5BA (envelope-from ) for ; Tue, 07 Dec 2021 19:20:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uE8ADPylr2EZNAAA1q6Kng (envelope-from ) for ; Tue, 07 Dec 2021 18:20:44 +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 063BB8AFB for ; Tue, 7 Dec 2021 19:20:44 +0100 (CET) Received: from localhost ([::1]:59798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muf50-0007m5-LQ for larch@yhetil.org; Tue, 07 Dec 2021 13:20:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muf4h-0007kL-WD for guix-devel@gnu.org; Tue, 07 Dec 2021 13:20:25 -0500 Received: from [2a00:1450:4864:20::444] (port=35668 helo=mail-wr1-x444.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muf4e-0001tl-Lb for guix-devel@gnu.org; Tue, 07 Dec 2021 13:20:23 -0500 Received: by mail-wr1-x444.google.com with SMTP id i5so31341647wrb.2 for ; Tue, 07 Dec 2021 10:20:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=t9VvkWDdM1pEW8l7w3n0EZpe4vsuMPeOW/YMddd6zHg=; b=JUkAMeYMZSaTd15udhgqhat+gliacwKuFacNLzkRxXV9/Q9STXqUt+9/2H1P7rL/vP eqIXKUYl6coqnGn7uU5Ifgjfon2DkS6+dqs6tU+mIEKMlDn3Kvx2+eZWsCuOcFMK09LG oGoxqurBv4EDGP4xRnkCrt2HhP7troF/qjNpqsTV/kqlfOrS0w2mpQ+zEKEmNZ4WXpxF buGzcVmJVjRuX9lIVclKjn3LnMCeOwuEK78Xgjv42dbJGXLkqpBQx69SgODUSe+4wHBK ebDuFiY5C1sA17+9/1pOVB1umf+5VYUdOSxJE12QBXo+AvPmKsA05zVjdfzF4T8hLb2h qkEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=t9VvkWDdM1pEW8l7w3n0EZpe4vsuMPeOW/YMddd6zHg=; b=oCDH0l0JOSpH3S0K5O/V6/dyLEUf0XMtw859uYZzXFqk8wsnp14NFWVBN0auw5QJ8b jFN5H49+YxR6ZIGISo1Z9jr/IgV1MQxTG+jJ4wZLgemZ7jTwPDCfARZlFllDRlg/2TLo z8pAURqxguL0iX8tc/bW8yJLKvO5F1DYCkek3vQJhmMQ2S+ojLkSwKnQoUCHhu7dv4e4 AAjrGJAohTlxv/jHaRnv+++hAqifUUmoteEPQRXHVAYJKdFRfDT5j0NBwopXneLyetZq Dlgo0NvF+mkqVohR6iPWz3d4r6O0wMX91gg6SNVYlwqNC9Ong7xQhH/2hzkiMrWSBSlq DcGw== X-Gm-Message-State: AOAM531z5gHR93Mtwa9lK3q24bp+2Lmi8yiXtZkGW3iEWeS6+CJfvmi4 yJ5/LFj2inBRvgeSwqEn9vc= X-Google-Smtp-Source: ABdhPJyPzcAFOMsVv/bDz5pE48kW6QCpseid1KFvbVi8XY8DbPHCTZ3KMQT7VnCGcpkLpiG+BjpizA== X-Received: by 2002:a5d:6e01:: with SMTP id h1mr50681993wrz.403.1638901217506; Tue, 07 Dec 2021 10:20:17 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id c1sm471354wrt.14.2021.12.07.10.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Dec 2021 10:20:16 -0800 (PST) Message-ID: <8535ba0240bd837979c874b8fff698832a4efa24.camel@gmail.com> Subject: Re: guix show --bibtex (was: How to compute SWHID? (with Guix/Disarchive)) From: Liliana Marie Prikler To: zimoun Date: Tue, 07 Dec 2021 19:20:15 +0100 In-Reply-To: References: <0c3f6f91b267f1d5f06fc427c1eca03660aba8b5.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::444 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::444; envelope-from=liliana.prikler@gmail.com; helo=mail-wr1-x444.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=1638901244; 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=t9VvkWDdM1pEW8l7w3n0EZpe4vsuMPeOW/YMddd6zHg=; b=IJy8tVHp1oL4aKhr1OC5ANlgpX/9lZpGGaPxUrBXtkMPw37Bu10NoT8aGrM3rnzQwF8paX F0kMCS3nHx8uIAO2lNwWV2OPzDrNxkHTq+KZj2KeWDPBdflPnksOoz0THSgPnuKUX7ktgA UGGb/D3KzzBDd3ite9I6k19RfOqL1c4YaNQc+l/CK9Zak+Dj6iJ7kFH+e6OLLVb0RCPnep flyrVOeV+jQ6N3/5VDbmkQPbCqyFBjxPRQCKeXZtwoaY/ZK54mxA3Si4rnRq32Im0yVsq+ 6e+KipEfG+QlMx0HQYGi07YXui5krjDJV2ojb6DBer0dUIZtx+oixNA15kHyqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638901244; a=rsa-sha256; cv=none; b=YdZxCPwz8yk67DMTuCh/sJ+f54UJL20Xggw0L2oDny7oM7q4HKZd+UlZPsS0oYX/ur4ybU tWBmbCnkQbYMZG6DxI2M8QsNRIc8AeEERBMgA74CK5aTYch6Im08vH3JBJVwNgZL9mX5AC ptUpgE49l0KKxAk+yfbgLIC6xm+ws2l2Al44/w8dZcaP7WdvTohO24CpTd/PFRIDdxap16 tshqRzlkbm4yyNWgJyqHWHguT3Z/Q8j+G94HbEi4kAwW2GZ/RgTQcWqsDqjDAVlJJm2cdR iTJUguZaGRYXSyXLtyac0gAcCeuziKanuw3GntHJDzWJJvgPT9tNCGp3zpTWKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=JUkAMeYM; 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.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=JUkAMeYM; 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: 063BB8AFB X-Spam-Score: -2.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: qrwUKomkSrGe Hi, 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. > 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? > author = "?????", We don't capture that in Guix, you'd have to look elsewhere IIUC. > date = "?????", January 1st, 1970, what else? > } > > [...] > --8<---------------cut here---------------end--------------->8--- I think there are a few things that'd need fixing in recutils itself. 1a. There needs to be a way of escaping {} in templates -- or at least I haven't found one. 1b. A rec2bib command would be nice, as would be bib2rec. 2. Looking at the output, a rec2rec command would also be nice, i.e. one that could rename fields. Though that one would probably be easier to implement in terms of recfmt. > 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. > 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 :) > 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? Cheers, Liliana