From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0B/6KWucr2EnlgAAgWs5BA (envelope-from ) for ; Tue, 07 Dec 2021 18:39:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cKTAJWucr2GXPgAAB5/wlQ (envelope-from ) for ; Tue, 07 Dec 2021 17:39:55 +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 6FF577DB1 for ; Tue, 7 Dec 2021 18:39:55 +0100 (CET) Received: from localhost ([::1]:49600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mueRW-0007Bn-Ih for larch@yhetil.org; Tue, 07 Dec 2021 12:39:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mueRA-0007Be-Ua for guix-devel@gnu.org; Tue, 07 Dec 2021 12:39:33 -0500 Received: from [2607:f8b0:4864:20::d2f] (port=35763 helo=mail-io1-xd2f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mueR9-00063n-Dt for guix-devel@gnu.org; Tue, 07 Dec 2021 12:39:32 -0500 Received: by mail-io1-xd2f.google.com with SMTP id 14so18080839ioe.2 for ; Tue, 07 Dec 2021 09:39:30 -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=V2+SDsg2fLvGxDf0uI8cnOhxcFBk3UCjNMqXbQqaU0E=; b=bFG5wj6n0hG+bb/J9Hwj8o9r/6Aq0POeYzaxHIviy5hKjiMaCzVMUNldvpBosx3goo bKGXzbXfrhNGE+3Awl6J03QnutEFfDAtOoRnA8C/SOLou+WkziiEPZXwMM/uwXj6UOoE wAY0q4eCPIii10oDW0QklgyiiOU6ste4ftRwWymXGnjVYBnOuybyX4eAtoPlSHai05ZV 9lRbDB+eJT3A2p5uc/EQKu6qGQfcom7eGYYFSYxjmABDDancCpgvJLCBChDwOo8oKv8S sT9OLJjgsc9RwWMz1JbK609jvg3zh/DwF2q0vq5lnjgVPX/ChT/gaFoj7iObK8jRpLs0 zM+g== 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=V2+SDsg2fLvGxDf0uI8cnOhxcFBk3UCjNMqXbQqaU0E=; b=oX9TdWS74dwAgoMdj42+9wlzwG1qjXU4B4eKVLHIGTYrMg1+Ekp3z4LHoN364Tb65m 3R2hMbV9Z64FodOFXlkC5lX5Ja3UAcWBsal90Qox1Unx7lwMlkqloe44Wm/DIIR3P3kp aEEKYv7VkSioev/EjV5wTsF5ZbY5xzj21Lvh9DEZBIIw/8UahwcF6YqH84/SGqJeIOdY voedVfBAxfcWRb7vlc0aZtPyWoG+8A7KUtlM2nCIn1qbqKNQJ8NgZQnUM7cyOGVzTQEt Ur5u3ld6Ar7LtczqaYELnUk7SxfgCxbOM3f+57KhN+Iypbe2Sq1cZ0Fn3zd7iQiRabRS U5yQ== X-Gm-Message-State: AOAM5330bdbus3jPSFs2vGn/g9n55tj5u9W3928lvhIKNsOV/hmoQG0A jtcfJRpK0Q8THO0xlq6yaxGhue9Uy6hdCWRJDSo= X-Google-Smtp-Source: ABdhPJyCAqTcuN7btWAGU/Xb7BRZNMP79jyqhJEwViFVcgQZriNtGD9tIlIAoXI/oFjlRzqAsBdUeU/Zst93A7v8jbA= X-Received: by 2002:a05:6602:25d4:: with SMTP id d20mr858529iop.72.1638898769700; Tue, 07 Dec 2021 09:39:29 -0800 (PST) MIME-Version: 1.0 References: <0c3f6f91b267f1d5f06fc427c1eca03660aba8b5.camel@gmail.com> In-Reply-To: <0c3f6f91b267f1d5f06fc427c1eca03660aba8b5.camel@gmail.com> From: zimoun Date: Tue, 7 Dec 2021 18:39:18 +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::d2f (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2f; envelope-from=zimon.toutoune@gmail.com; helo=mail-io1-xd2f.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=1638898795; 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=V2+SDsg2fLvGxDf0uI8cnOhxcFBk3UCjNMqXbQqaU0E=; b=jcEaXPIMGcSxNQym+ixnJT03EZl3Zpv/k9GV7FRMfU+IK4MEAa7USNuwxII6p9WvWT3UfE gsP1RMcwUDuJqKfhbui+nbsuDZ7P2YSbJSljxifn4Dn637nfV9IRPMOXr8SjcvmopsS8by fRQ8ouX9LTXCFSpliAPV7w3bVoE+/FxBFJXf9p3C9rhLk2buF3FC9759amOBFsuUY45phB cBsu9zIoNEu/Np18pUS/F2zVotGZETR5SWiEpbXz5l0OLmhiTqCc2MOquO+Vmcp8lh9ihv tHTrA/8/LoWsyWNWuDPUan7H2olw4qg8BDide5DOAP0sL8NLkdQAMKpLj14YJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638898795; a=rsa-sha256; cv=none; b=iM3ZFNdsLEXMsxSK8R3ZoJd3gq83yDyLuLwXTTMwUQrWwg4vQuxkef4zaBxJR0c5IXNX5r lZPckn5Lh/i5l0csLSWH+mcr/N9DPiJwrVJ5IUyrP7a+gFlSli1cfoXWalPoG2sN0lwAci YJcdoJUgoM/QYqBSWD6IKfEWgCLvqPcQgxFi5IhybX4AjNQ4lVYkts83FEbwEwvURYofAM YFwb8Lg6Yw1LgbSkY0lIgIOXX4ReN3bev6X6AemTI0OT8ODKtGk0UrffFNHIBRm1B33x+t aa1qDaYE4gu6fJO7RQ47jjYEzONw2wL/Qyy0ih+A4mWmCtkcP0cjZqOh41Dp5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bFG5wj6n; 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=bFG5wj6n; 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: 6FF577DB1 X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: Orl4jfKOmMnr Hi, On Tue, 7 Dec 2021 at 18:07, Liliana Marie Prikler wrote: > Given that `guix show' output is well-structured (it uses the Recutils > format), couldn't you post-process to form a bibtex file? In > particular, you could use recfmt IIUC. Good idea. For an trivial example, --8<---------------cut here---------------start------------->8--- $ cat bibtex.tmpl @example{ {{name}}@{{version}}, title = {{name}}, url = {{home-page}}, license = {{license}}, abstract = {{synopsis}}, swhid = {swh:1:...}, repository = "WE HAVE THAT INFO", author = "?????", date = "?????", } $ guix show hello | recfmt -f bibtex.tmpl @example{ hello@2.10, title = hello, url = 0.000000, license = GPL 3+, abstract = Hello, GNU world: An example GNU package , swhid = {swh:1:...}, repository = "WE HAVE THAT INFO", author = "?????", date = "?????", } --8<---------------cut here---------------end--------------->8--- However, 2 minor annoying comments: 1. SWHID is not computed by "guix show". 2. Typing the path to the template; aside recutils is not installed by default, IIRC. Well, #2 could be solved with something under ~/.config/guix/current/bin. About #1, it requires some work and I am not convinced I would like that Guix does it each time I call "guix show". > That said, there would be stuff like author etc. missing from Guix' > metadata. What kind of output were you hoping to produce? 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 Cheers, simon